Autofix Rubocop RSpec/BeEq (#23740)
This commit is contained in:
@@ -410,7 +410,7 @@ RSpec.describe ActivityPub::ProcessStatusUpdateService, type: :service do
|
||||
end
|
||||
|
||||
it 'removes poll' do
|
||||
expect(status.reload.poll).to eq nil
|
||||
expect(status.reload.poll).to be_nil
|
||||
end
|
||||
|
||||
it 'records media change in edit' do
|
||||
|
@@ -62,7 +62,7 @@ describe FetchOEmbedService, type: :service do
|
||||
|
||||
it 'does not cache OEmbed endpoint' do
|
||||
subject.call('https://host.test/oembed.html', format: :xml)
|
||||
expect(Rails.cache.exist?('oembed_endpoint:host.test')).to eq false
|
||||
expect(Rails.cache.exist?('oembed_endpoint:host.test')).to be false
|
||||
end
|
||||
end
|
||||
|
||||
@@ -83,7 +83,7 @@ describe FetchOEmbedService, type: :service do
|
||||
|
||||
it 'does not cache OEmbed endpoint' do
|
||||
subject.call('https://host.test/oembed.html')
|
||||
expect(Rails.cache.exist?('oembed_endpoint:host.test')).to eq false
|
||||
expect(Rails.cache.exist?('oembed_endpoint:host.test')).to be false
|
||||
end
|
||||
end
|
||||
|
||||
@@ -104,7 +104,7 @@ describe FetchOEmbedService, type: :service do
|
||||
|
||||
it 'does not cache OEmbed endpoint' do
|
||||
subject.call('https://host.test/oembed.html')
|
||||
expect(Rails.cache.exist?('oembed_endpoint:host.test')).to eq false
|
||||
expect(Rails.cache.exist?('oembed_endpoint:host.test')).to be false
|
||||
end
|
||||
end
|
||||
|
||||
|
@@ -74,7 +74,7 @@ RSpec.describe FetchResourceService, type: :service do
|
||||
context 'when content type is application/atom+xml' do
|
||||
let(:content_type) { 'application/atom+xml' }
|
||||
|
||||
it { is_expected.to eq nil }
|
||||
it { is_expected.to be_nil }
|
||||
end
|
||||
|
||||
context 'when content type is activity+json' do
|
||||
|
@@ -216,7 +216,7 @@ RSpec.describe PostStatusService, type: :service do
|
||||
media_ids: [media.id]
|
||||
)
|
||||
|
||||
expect(media.reload.status).to eq nil
|
||||
expect(media.reload.status).to be_nil
|
||||
end
|
||||
|
||||
it 'does not allow attaching more than 4 files' do
|
||||
|
@@ -31,7 +31,7 @@ RSpec.describe PrecomputeFeedService, type: :service do
|
||||
|
||||
subject.call(account)
|
||||
|
||||
expect(redis.zscore(FeedManager.instance.key(:home, account.id), reblog.id)).to eq nil
|
||||
expect(redis.zscore(FeedManager.instance.key(:home, account.id), reblog.id)).to be_nil
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@@ -108,7 +108,7 @@ RSpec.describe ResolveAccountService, type: :service do
|
||||
it 'returns new remote account' do
|
||||
account = subject.call('Foo@redirected.example.com')
|
||||
|
||||
expect(account.activitypub?).to eq true
|
||||
expect(account.activitypub?).to be true
|
||||
expect(account.acct).to eq 'foo@ap.example.com'
|
||||
expect(account.inbox_url).to eq 'https://ap.example.com/users/foo/inbox'
|
||||
end
|
||||
@@ -123,7 +123,7 @@ RSpec.describe ResolveAccountService, type: :service do
|
||||
it 'returns new remote account' do
|
||||
account = subject.call('Foo@redirected.example.com')
|
||||
|
||||
expect(account.activitypub?).to eq true
|
||||
expect(account.activitypub?).to be true
|
||||
expect(account.acct).to eq 'foo@ap.example.com'
|
||||
expect(account.inbox_url).to eq 'https://ap.example.com/users/foo/inbox'
|
||||
end
|
||||
@@ -146,7 +146,7 @@ RSpec.describe ResolveAccountService, type: :service do
|
||||
it 'returns new remote account' do
|
||||
account = subject.call('foo@ap.example.com')
|
||||
|
||||
expect(account.activitypub?).to eq true
|
||||
expect(account.activitypub?).to be true
|
||||
expect(account.domain).to eq 'ap.example.com'
|
||||
expect(account.inbox_url).to eq 'https://ap.example.com/users/foo/inbox'
|
||||
end
|
||||
@@ -159,7 +159,7 @@ RSpec.describe ResolveAccountService, type: :service do
|
||||
it 'returns new remote account' do
|
||||
account = subject.call('foo@ap.example.com')
|
||||
|
||||
expect(account.activitypub?).to eq true
|
||||
expect(account.activitypub?).to be true
|
||||
expect(account.domain).to eq 'ap.example.com'
|
||||
expect(account.inbox_url).to eq 'https://ap.example.com/users/foo/inbox'
|
||||
expect(account.actor_type).to eq 'Person'
|
||||
@@ -174,7 +174,7 @@ RSpec.describe ResolveAccountService, type: :service do
|
||||
it 'returns new remote account' do
|
||||
account = subject.call('foo@ap.example.com')
|
||||
|
||||
expect(account.activitypub?).to eq true
|
||||
expect(account.activitypub?).to be true
|
||||
expect(account.domain).to eq 'ap.example.com'
|
||||
expect(account.inbox_url).to eq 'https://ap.example.com/users/foo/inbox'
|
||||
expect(account.uri).to eq 'https://ap.example.com/users/foo'
|
||||
@@ -195,7 +195,7 @@ RSpec.describe ResolveAccountService, type: :service do
|
||||
it 'returns new remote account' do
|
||||
account = subject.call('foo@ap.example.com')
|
||||
|
||||
expect(account.activitypub?).to eq true
|
||||
expect(account.activitypub?).to be true
|
||||
expect(account.domain).to eq 'ap.example.com'
|
||||
expect(account.inbox_url).to eq 'https://ap.example.com/users/foo/inbox'
|
||||
expect(account.uri).to eq 'https://ap.example.com/users/foo'
|
||||
|
Reference in New Issue
Block a user