Sha256: ca6579cb69acebaf85ed9da967c662324537ec9e0861c322ec8b52a3050d6882

Contents?: true

Size: 546 Bytes

Versions: 3

Compression:

Stored size: 546 Bytes

Contents

require 'helper'

class TestCampaigns < Test::Unit::TestCase

  context "When using the foursquare API and working with campaigns" do
    setup do
      @client = foursquare_test_client
    end
    
    should "add a campaign" do
      stub_post("https://api.foursquare.com/v2/campaigns/add?oauth_token=#{@client.oauth_token}&specialId=4bd876f886ba62b58a6e88b3", "campaign_created.json")
      campaign = @client.add_campaign(:specialId => '4bd876f886ba62b58a6e88b3')
      campaign.special.id == "4bd876f886ba62b58a6e88b3"
    end
    
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
foursquare2-1.8.1 test/test_campaigns.rb
foursquare2-1.8.0 test/test_campaigns.rb
foursquare2-1.7.0 test/test_campaigns.rb