Sha256: b6d701b99150f38a0f22e77d9e00f3a14223e6cdb4c51a2f3b77e4d3b101669e
Contents?: true
Size: 608 Bytes
Versions: 16
Compression:
Stored size: 608 Bytes
Contents
require 'helper' describe Twitter::Settings do describe "#trend_location" do it "returns a Twitter::Place when set" do place = Twitter::Settings.new(:trend_location => [{:countryCode => 'US', :name => 'San Francisco', :country => 'United States', :placeType => {:name => 'Town', :code => 7}, :woeid => 2487956, :parentid => 23424977, :url => 'http://where.yahooapis.com/v1/place/2487956'}]) expect(place.trend_location).to be_a Twitter::Place end it "returns nil when not set" do place = Twitter::Settings.new expect(place.trend_location).to be_nil end end end
Version data entries
16 entries across 16 versions & 1 rubygems