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:
Javi Martín
2023-08-29 19:14:49 +02:00
parent 6268ae9274
commit f79a21f071
31 changed files with 213 additions and 210 deletions

View File

@@ -27,25 +27,25 @@ describe MapLocation do
describe "#available?" do
it "returns true when latitude, longitude and zoom defined" do
expect(map_location.available?).to be(true)
expect(map_location.available?).to be true
end
it "returns false when longitude is nil" do
map_location.longitude = nil
expect(map_location.available?).to be(false)
expect(map_location.available?).to be false
end
it "returns false when latitude is nil" do
map_location.latitude = nil
expect(map_location.available?).to be(false)
expect(map_location.available?).to be false
end
it "returns false when zoom is nil" do
map_location.zoom = nil
expect(map_location.available?).to be(false)
expect(map_location.available?).to be false
end
end
end