BigW Consortium Gitlab

shortcuts_spec.rb 539 Bytes
Newer Older
1 2 3
require 'spec_helper'

feature 'Project shortcuts', feature: true do
4
  let(:project) { create(:project, name: 'Victorialand') }
5 6 7 8 9 10 11 12 13 14 15 16
  let(:user) { create(:user) }

  describe 'On a project', js: true do
    before do
      project.team << [user, :master]
      login_as user
      visit namespace_project_path(project.namespace, project)
    end

    describe 'pressing "i"' do
      it 'redirects to new issue page' do
        find('body').native.send_key('i')
17
        expect(page).to have_content('Victorialand')
18 19 20 21
      end
    end
  end
end