Sha256: cb57a50a8cd53b8e62f4638ef085b4eb6a1763a4369e149cb7b1c8fa1f11204b
Contents?: true
Size: 497 Bytes
Versions: 4
Compression:
Stored size: 497 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 IndexError when type is not specified" do expect{Twitter::GeoFactory.new}.to raise_error IndexError end end end
Version data entries
4 entries across 4 versions & 1 rubygems