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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user