test/campaign_test.rb in createsend-0.2.0 vs test/campaign_test.rb in createsend-0.2.1
- old
+ new
@@ -3,10 +3,10 @@
class CampaignTest < Test::Unit::TestCase
context "when an api caller is authenticated" do
setup do
@api_key = '123123123123123123123'
CreateSend.api_key @api_key
- @campaign = CreateSend::Campaign.new(:campaign_id => '787y87y87y87y87y87y87')
+ @campaign = CreateSend::Campaign.new('787y87y87y87y87y87y87')
end
should "create a campaign" do
client_id = '87y8d7qyw8d7yq8w7ydwqwd'
stub_post(@api_key, "campaigns/#{client_id}.json", "create_campaign.json")
\ No newline at end of file