mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-24 00:54:02 -05:00
minor code style fixes oops
This commit is contained in:
parent
f9d7b8a94f
commit
d880b3182b
@ -1,40 +1,40 @@
|
||||
require 'rails_helper'
|
||||
|
||||
describe AccountInteractions do
|
||||
describe 'muting an account' do
|
||||
before do
|
||||
@me = Fabricate(:account, username: 'Me')
|
||||
@you = Fabricate(:account, username: 'You')
|
||||
end
|
||||
describe 'muting an account' do
|
||||
before do
|
||||
@me = Fabricate(:account, username: 'Me')
|
||||
@you = Fabricate(:account, username: 'You')
|
||||
end
|
||||
|
||||
context 'with the notifications option unspecified' do
|
||||
before do
|
||||
@me.mute!(@you)
|
||||
end
|
||||
context 'with the notifications option unspecified' do
|
||||
before do
|
||||
@me.mute!(@you)
|
||||
end
|
||||
|
||||
it 'defaults to muting notifications' do
|
||||
expect(@me.muting_notifications?(@you)).to be(true)
|
||||
end
|
||||
end
|
||||
it 'defaults to muting notifications' do
|
||||
expect(@me.muting_notifications?(@you)).to be(true)
|
||||
end
|
||||
end
|
||||
|
||||
context 'with the notifications option set to false' do
|
||||
before do
|
||||
@me.mute!(@you, notifications: false)
|
||||
end
|
||||
context 'with the notifications option set to false' do
|
||||
before do
|
||||
@me.mute!(@you, notifications: false)
|
||||
end
|
||||
|
||||
it 'does not mute notifications' do
|
||||
expect(@me.muting_notifications?(@you)).to be(false)
|
||||
end
|
||||
end
|
||||
it 'does not mute notifications' do
|
||||
expect(@me.muting_notifications?(@you)).to be(false)
|
||||
end
|
||||
end
|
||||
|
||||
context 'with the notifications option set to true' do
|
||||
before do
|
||||
@me.mute!(@you, notifications: true)
|
||||
end
|
||||
context 'with the notifications option set to true' do
|
||||
before do
|
||||
@me.mute!(@you, notifications: true)
|
||||
end
|
||||
|
||||
it 'does mute notifications' do
|
||||
expect(@me.muting_notifications?(@you)).to be(true)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
it 'does mute notifications' do
|
||||
expect(@me.muting_notifications?(@you)).to be(true)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user