test/customer_test.rb in centrum_faktur-0.2.0 vs test/customer_test.rb in centrum_faktur-0.2.1

- old
+ new

@@ -1,19 +1,20 @@ # -*- encoding: utf-8 -*- require "helper" -describe "Customer" do +describe CentrumFaktur::Customer do before do CentrumFaktur.configure do |config| config.login = "john" config.password = "secret" config.subdomain = "john" end end - it "should return customers list" do + it "returns customers list" do FakeWeb.register_uri(:get, "https://john:secret@john.centrumfaktur.pl/api/1.0/customers/", :response => fixture("customers.txt")) response = CentrumFaktur::Customer.list expected = [{"name"=>"Stefan Stefański", "contact"=>"", "address"=>"Stefanowo\r\nul. Stefańska 1", "resource_uri"=>"/api/1.0/customers/3138/", "email"=>"w.wnetrzak+stefan@gmail.com", "tax_id"=>""}] + assert_equal expected, response end end