0ce6785851
Replaces all the explicit include metadata syntax in the specs (tag: true) into the implicit one (:tag). Added a cop to prevent future errors and handle autocorrection.
21 lines
497 B
Ruby
21 lines
497 B
Ruby
require 'spec_helper'
|
|
|
|
feature 'User visits the notifications tab', :js do
|
|
let(:project) { create(:project) }
|
|
let(:user) { create(:user) }
|
|
|
|
before do
|
|
project.team << [user, :master]
|
|
sign_in(user)
|
|
visit(profile_notifications_path)
|
|
end
|
|
|
|
it 'changes the project notifications setting' do
|
|
expect(page).to have_content('Notifications')
|
|
|
|
first('#notifications-button').trigger('click')
|
|
click_link('On mention')
|
|
|
|
expect(page).to have_content('On mention')
|
|
end
|
|
end
|