From 8d944828463a58832b9f0b48e3dc98c28d2445d8 Mon Sep 17 00:00:00 2001 From: Anna Elisabeth Date: Tue, 9 May 2017 16:53:11 -0700 Subject: [PATCH] wrote customer model tests --- test/fixtures/rentals.yml | 2 +- test/models/customer_test.rb | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/test/fixtures/rentals.yml b/test/fixtures/rentals.yml index 509127852..b04bd4703 100644 --- a/test/fixtures/rentals.yml +++ b/test/fixtures/rentals.yml @@ -19,7 +19,7 @@ three: due_date: 2017-05-09 four: - movie: exorcist: + movie: exorcist customer: curran checked_out: false due_date: 2017-05-09 diff --git a/test/models/customer_test.rb b/test/models/customer_test.rb index fdcbf4371..4860cc7c5 100644 --- a/test/models/customer_test.rb +++ b/test/models/customer_test.rb @@ -9,8 +9,9 @@ end it "can call rentals from customers" do - + customer = customers(:shelley) + customer.must_respond_to :rentals + customer.rentals.first.must_be_kind_of Rental end - end end