test/createsend_test.rb in createsend-2.4.0 vs test/createsend_test.rb in createsend-2.5.0
- old
+ new
@@ -32,10 +32,16 @@
clients = @cs.clients
clients.size.should == 2
clients.first.ClientID.should == '4a397ccaaa55eb4e6aa1221e1e2d7122'
clients.first.Name.should == 'Client One'
end
-
+
+ should "get billing details" do
+ stub_get(@api_key, "billingdetails.json", "billingdetails.json")
+ bd = @cs.billing_details
+ bd.Credits.should == 3021
+ end
+
should "get all countries" do
stub_get(@api_key, "countries.json", "countries.json")
countries = @cs.countries
countries.size.should == 245
assert countries.include? "Australia"