spec/twitter/geo_spec.rb in twitter-4.1.0 vs spec/twitter/geo_spec.rb in twitter-4.1.1
- old
+ new
@@ -8,22 +8,22 @@
describe "#==" do
it "returns false for empty objects" do
geo = Twitter::Geo.new
other = Twitter::Geo.new
- (geo == other).should be_false
+ expect(geo == other).to be_false
end
it "returns true when objects coordinates are the same" do
other = Twitter::Geo.new(:coordinates => [[[-122.40348192, 37.77752898], [-122.387436, 37.77752898], [-122.387436, 37.79448597], [-122.40348192, 37.79448597]]])
- (@geo == other).should be_true
+ expect(@geo == other).to be_true
end
it "returns false when objects coordinates are different" do
other = Twitter::Geo.new(:coordinates => [[[37.77752898, -122.40348192], [37.77752898, -122.387436], [37.79448597, -122.387436], [37.79448597, -122.40348192]]])
- (@geo == other).should be_false
+ expect(@geo == other).to be_false
end
it "returns false when classes are different" do
other = Twitter::Geo::Polygon.new(:coordinates => [[[-122.40348192, 37.77752898], [-122.387436, 37.77752898], [-122.387436, 37.79448597], [-122.40348192, 37.79448597]]])
- (@geo == other).should be_false
+ expect(@geo == other).to be_false
end
end
end