spec/groovehq/integration/customers_spec.rb in groovehq-1.0.6 vs spec/groovehq/integration/customers_spec.rb in groovehq-1.0.7
- old
+ new
@@ -6,14 +6,14 @@
let(:customer_email) { "customer@example.com" }
describe "#update_customer" do
it "updates customer info" do
- customer = client.customer(customer_email)
- new_about_text = "Some new about text"
+ new_about_text = "Some new about text " + SecureRandom.uuid
response = client.update_customer(customer_email, about: new_about_text)
+ customer = client.customer(customer_email)
expect(customer.about).to eq new_about_text
- expect(response.rels[:tickets].href).to eq "http://api.groovehq.com/v1/tickets?customer=#{customer.id}"
+ expect(response.rels[:tickets]).not_to be_nil
end
end
describe "#customer" do