test/client_test.rb in createsend-0.2.0 vs test/client_test.rb in createsend-0.2.1
- old
+ new
@@ -3,10 +3,11 @@
class ClientTest < Test::Unit::TestCase
context "when an api caller is authenticated" do
setup do
@api_key = '123123123123123123123'
CreateSend.api_key @api_key
- @client = CreateSend::Client.new(:client_id => '321iuhiuhi1u23hi2u3')
+ @client = CreateSend::Client.new('321iuhiuhi1u23hi2u3')
+ @client.client_id.should == '321iuhiuhi1u23hi2u3'
end
should "create a client" do
stub_post(@api_key, "clients.json", "create_client.json")
client_id = CreateSend::Client.create "Client Company Name", "Client Contact Name", "client@example.com", "(GMT+10:00) Canberra, Melbourne, Sydney", "Australia"