spec/twitter/geo_factory_spec.rb in twitter-4.8.1 vs spec/twitter/geo_factory_spec.rb in twitter-5.0.0.rc.1

- old
+ new

@@ -2,18 +2,18 @@ describe Twitter::GeoFactory do describe ".new" do it "generates a Point" do - geo = Twitter::GeoFactory.fetch_or_new(:type => 'Point') + geo = Twitter::GeoFactory.new(:type => "Point") expect(geo).to be_a Twitter::Geo::Point end it "generates a Polygon" do - geo = Twitter::GeoFactory.fetch_or_new(:type => 'Polygon') + geo = Twitter::GeoFactory.new(:type => "Polygon") expect(geo).to be_a Twitter::Geo::Polygon end it "raises an ArgumentError when type is not specified" do - expect{Twitter::GeoFactory.fetch_or_new}.to raise_error ArgumentError + expect{Twitter::GeoFactory.new}.to raise_error ArgumentError end end end