Sha256: 6a5bdb0238ca12cc55520470b6e2fddda95f02cb19bf8d0d5360c0e612b99190
Contents?: true
Size: 563 Bytes
Versions: 4
Compression:
Stored size: 563 Bytes
Contents
require 'helper' describe Twitter::GeoFactory do describe ".new" do it "generates a Point" do geo = Twitter::GeoFactory.fetch_or_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') 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, "argument must have :type key") end end end
Version data entries
4 entries across 4 versions & 1 rubygems