Sha256: 9569ef489d9bba94f83138d5f02af91681eeffeec246c71d1dbf7ab0e33feff2
Contents?: true
Size: 579 Bytes
Versions: 2
Compression:
Stored size: 579 Bytes
Contents
require File.dirname(__FILE__) + '/../test_helper' class CountryTest < Test::Unit::TestCase include Upcoming context "when using the country API" do setup do Upcoming.api_key = 'OU812' end should "retrieve the details about a country" do stub_get "http://upcoming.yahooapis.com/services/rest/?method=country.getInfo&country_id=1%2C2%2C3%2C4&api_key=OU812&format=json", 'countries.json' countries = Upcoming::Country.info([1,2,3,4]) countries.first.code.should == 'us' countries.last.code.should == 'de' end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
squeejee-upcoming-events-0.0.1 | test/upcoming/country_test.rb |
upcoming-events-0.0.1 | test/upcoming/country_test.rb |