Add and apply RSpec/BeEq rubocop rule
This rule was added in rubocop-rspec 2.9.0. Once again, we were applying it about 50% of the time.
This commit is contained in:
@@ -8,7 +8,7 @@ RSpec.describe SettingsHelper, type: :helper do
|
||||
|
||||
expect(setting["key1"]).to eq("value1")
|
||||
expect(setting["key2"]).to eq("value2")
|
||||
expect(setting["key3"]).to eq(nil)
|
||||
expect(setting["key3"]).to be nil
|
||||
end
|
||||
end
|
||||
|
||||
@@ -19,9 +19,9 @@ RSpec.describe SettingsHelper, type: :helper do
|
||||
Setting["feature.f3"] = nil
|
||||
|
||||
expect(feature?("f1")).to eq("active")
|
||||
expect(feature?("f2")).to eq(nil)
|
||||
expect(feature?("f3")).to eq(nil)
|
||||
expect(feature?("f4")).to eq(nil)
|
||||
expect(feature?("f2")).to be nil
|
||||
expect(feature?("f3")).to be nil
|
||||
expect(feature?("f4")).to be nil
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user