From 733923e885302fcad25fd8e12393f223363c4f47 Mon Sep 17 00:00:00 2001 From: Ashtn Date: Fri, 12 May 2017 16:46:04 -0700 Subject: [PATCH] minor tweak to overdue edge case --- test/models/rental_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/models/rental_test.rb b/test/models/rental_test.rb index b0c52bc55..28486d9d6 100644 --- a/test/models/rental_test.rb +++ b/test/models/rental_test.rb @@ -106,14 +106,14 @@ Rental.overdue.wont_include rentals(:three) end - it "Does something if no rentals are overdue" do + it "Retuns status ok and empty array if if no rentals are overdue" do Rental.all.each do |rental| if rental.check_in.nil? rental.check_in = DateTime.yesterday rental.save end end - + must_respond_with :success Rental.overdue.must_equal [] end end