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

- old
+ new

@@ -9,11 +9,11 @@ end it "generates a Polygon" do 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.new}.to raise_error ArgumentError + it "raises an IndexError when type is not specified" do + expect{Twitter::GeoFactory.new}.to raise_error IndexError end end end