Sha256: 3d624f6e8f77ec0bb266fdaaf200e835ac27d2af4676dae0bbee2ec590fdf632
Contents?: true
Size: 503 Bytes
Versions: 1
Compression:
Stored size: 503 Bytes
Contents
require 'helper' describe Twitter::GeoFactory do describe ".new" do it "generates a Point" do geo = Twitter::GeoFactory.new(:type => "Point") expect(geo).to be_a Twitter::Geo::Point 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 end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
twitter-5.0.0.rc.1 | spec/twitter/geo_factory_spec.rb |