Skip to content

Commit 733923e

Browse files
committed
minor tweak to overdue edge case
1 parent 4a82001 commit 733923e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/models/rental_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,14 +106,14 @@
106106
Rental.overdue.wont_include rentals(:three)
107107
end
108108

109-
it "Does something if no rentals are overdue" do
109+
it "Retuns status ok and empty array if if no rentals are overdue" do
110110
Rental.all.each do |rental|
111111
if rental.check_in.nil?
112112
rental.check_in = DateTime.yesterday
113113
rental.save
114114
end
115115
end
116-
116+
must_respond_with :success
117117
Rental.overdue.must_equal []
118118
end
119119
end

0 commit comments

Comments
 (0)