Sha256: 64ec969562686421a4740a0a317b4b892e2dc13a1721fab31c757f1dda4f7295
Contents?: true
Size: 791 Bytes
Versions: 13
Compression:
Stored size: 791 Bytes
Contents
require 'helper' class TestEvents < Test::Unit::TestCase context "When using the foursquare API and working with events" do setup do @client = foursquare_test_client end should "fetch list of event categories" do stub_get("https://api.foursquare.com/v2/events/categories?oauth_token=#{@client.oauth_token}", "events/event_categories.json") event_categories = @client.event_categories() event_categories.first.name.should == "Movies" end should "fetch info for a single event" do stub_get("https://api.foursquare.com/v2/events/4f98d496f6903e7ae2a3628c?oauth_token=#{@client.oauth_token}", "events/event.json") event = @client.event('4f98d496f6903e7ae2a3628c') event.name.should == "Marvel's The Avengers" end end end
Version data entries
13 entries across 13 versions & 1 rubygems