Skip to content

Commit

Permalink
minor tweak to overdue edge case
Browse files Browse the repository at this point in the history
  • Loading branch information
ashtn committed May 12, 2017
1 parent 4a82001 commit 733923e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/models/rental_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 733923e

Please sign in to comment.