We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a82001 commit 733923eCopy full SHA for 733923e
1 file changed
test/models/rental_test.rb
@@ -106,14 +106,14 @@
106
Rental.overdue.wont_include rentals(:three)
107
end
108
109
- it "Does something if no rentals are overdue" do
+ it "Retuns status ok and empty array if if no rentals are overdue" do
110
Rental.all.each do |rental|
111
if rental.check_in.nil?
112
rental.check_in = DateTime.yesterday
113
rental.save
114
115
116
-
+ must_respond_with :success
117
Rental.overdue.must_equal []
118
119
0 commit comments