Autofix Rubocop RSpec/BeEq (#23740)
This commit is contained in:
parent
bf785df9fe
commit
5116347eb7
39 changed files with 139 additions and 182 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue