diff options
Diffstat (limited to 'test/command_test.rb')
| -rw-r--r-- | test/command_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/command_test.rb b/test/command_test.rb index cd21736..56c7d93 100644 --- a/test/command_test.rb +++ b/test/command_test.rb @@ -75,9 +75,9 @@ class CommandTest < HCl::TestCase def test_stop entry = stub - HCl::DayEntry.expects(:with_timer).returns(entry) - entry.expects(:append_note).with('all done') - entry.expects(:toggle) + register_uri(:get, '/daily', {day_entries:[{id:123,notes:'',hours:1,client:nil,project:nil,timer_started_at:DateTime.now}]}) + register_uri(:post, '/daily/update/123', {day_entry:{notes:'all done'}}) + register_uri(:get, '/daily/timer/123') stop 'all done' end |
