minor code style fixes oops

rebase/4.0.0rc2
Surinna Curtis 2017-09-13 20:44:38 -05:00
parent f9d7b8a94f
commit d880b3182b
1 changed files with 31 additions and 31 deletions

View File

@ -1,40 +1,40 @@
require 'rails_helper' require 'rails_helper'
describe AccountInteractions do describe AccountInteractions do
describe 'muting an account' do describe 'muting an account' do
before do before do
@me = Fabricate(:account, username: 'Me') @me = Fabricate(:account, username: 'Me')
@you = Fabricate(:account, username: 'You') @you = Fabricate(:account, username: 'You')
end end
context 'with the notifications option unspecified' do context 'with the notifications option unspecified' do
before do before do
@me.mute!(@you) @me.mute!(@you)
end end
it 'defaults to muting notifications' do it 'defaults to muting notifications' do
expect(@me.muting_notifications?(@you)).to be(true) expect(@me.muting_notifications?(@you)).to be(true)
end end
end end
context 'with the notifications option set to false' do context 'with the notifications option set to false' do
before do before do
@me.mute!(@you, notifications: false) @me.mute!(@you, notifications: false)
end end
it 'does not mute notifications' do it 'does not mute notifications' do
expect(@me.muting_notifications?(@you)).to be(false) expect(@me.muting_notifications?(@you)).to be(false)
end end
end end
context 'with the notifications option set to true' do context 'with the notifications option set to true' do
before do before do
@me.mute!(@you, notifications: true) @me.mute!(@you, notifications: true)
end end
it 'does mute notifications' do it 'does mute notifications' do
expect(@me.muting_notifications?(@you)).to be(true) expect(@me.muting_notifications?(@you)).to be(true)
end end
end end
end end
end end