gitlab-org--gitlab-foss/spec/features/project/shortcuts_spec.rb
2016-05-26 16:11:58 -05:00

21 lines
539 B
Ruby

require 'spec_helper'
feature 'Project shortcuts', feature: true do
let(:project) { create(:project, name: 'Victorialand') }
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')
expect(page).to have_content('Victorialand')
end
end
end
end