test/campaign_test.rb in createsend-0.1.1 vs test/campaign_test.rb in createsend-0.2.0
- old
+ new
@@ -3,16 +3,16 @@
class CampaignTest < Test::Unit::TestCase
context "when an api caller is authenticated" do
setup do
@api_key = '123123123123123123123'
CreateSend.api_key @api_key
- @campaign = Campaign.new(:campaign_id => '787y87y87y87y87y87y87')
+ @campaign = CreateSend::Campaign.new(:campaign_id => '787y87y87y87y87y87y87')
end
should "create a campaign" do
client_id = '87y8d7qyw8d7yq8w7ydwqwd'
stub_post(@api_key, "campaigns/#{client_id}.json", "create_campaign.json")
- campaign_id = Campaign.create client_id, "subject", "name", "g'day", "good.day@example.com", "good.day@example.com",
+ campaign_id = CreateSend::Campaign.create client_id, "subject", "name", "g'day", "good.day@example.com", "good.day@example.com",
"http://example.com/campaign.html", "http://example.com/campaign.txt", [ '7y12989e82ue98u2e', 'dh9w89q8w98wudwd989' ],
[ 'y78q9w8d9w8ud9q8uw', 'djw98quw9duqw98uwd98' ]
campaign_id.should == "787y87y87y87y87y87y87"
end
\ No newline at end of file