Autofix Rubocop RSpec/BeEq (#23740)
This commit is contained in:
@@ -28,8 +28,8 @@ RSpec.describe Block, type: :model do
|
||||
|
||||
Block.create!(account: account, target_account: target_account)
|
||||
|
||||
expect(Rails.cache.exist?("exclude_account_ids_for:#{account.id}")).to eq false
|
||||
expect(Rails.cache.exist?("exclude_account_ids_for:#{target_account.id}")).to eq false
|
||||
expect(Rails.cache.exist?("exclude_account_ids_for:#{account.id}")).to be false
|
||||
expect(Rails.cache.exist?("exclude_account_ids_for:#{target_account.id}")).to be false
|
||||
end
|
||||
|
||||
it 'removes blocking cache after destruction' do
|
||||
@@ -41,7 +41,7 @@ RSpec.describe Block, type: :model do
|
||||
|
||||
block.destroy!
|
||||
|
||||
expect(Rails.cache.exist?("exclude_account_ids_for:#{account.id}")).to eq false
|
||||
expect(Rails.cache.exist?("exclude_account_ids_for:#{target_account.id}")).to eq false
|
||||
expect(Rails.cache.exist?("exclude_account_ids_for:#{account.id}")).to be false
|
||||
expect(Rails.cache.exist?("exclude_account_ids_for:#{target_account.id}")).to be false
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user