Sha256: 6bb6ef72fe89184478363552ebfcef4a5d6d77eed53719e6b4af1712c6eccbcf

Contents?: true

Size: 600 Bytes

Versions: 2

Compression:

Stored size: 600 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'}])
      place.trend_location.should be_a Twitter::Place
    end
    it "returns nil when not set" do
      place = Twitter::Settings.new
      place.trend_location.should be_nil
    end
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
twitter-4.1.0 spec/twitter/settings_spec.rb
twitter-4.0.0 spec/twitter/settings_spec.rb