Inconsistency in test. Why didn't I catch that?

This commit is contained in:
epall 2008-06-15 08:56:07 -07:00 committed by Eric Allen
parent 6210d3033d
commit 98136d8ef2

View file

@ -119,7 +119,7 @@ class SMSGatewayTest < Test::Rails::TestCase
SMSGateway.receive(valid_show_msg2)
valid_show_todo2 = Todo.find(:first, :conditions => {:description => "do something next week and remember it!"})
assert_not_nil(valid_show_todo2)
assert_equal(Date.tomorrow.next_week, valid_show_todo2.show_from)
assert_equal(Date.today.next_week, valid_show_todo2.show_from)
SMSGateway.receive(valid_show_msg3)
valid_show_todo3 = Todo.find(:first, :conditions => {:description => "alternative format"})