diff options
| author | Zack Hobson | 2013-12-27 08:09:21 -0800 | 
|---|---|---|
| committer | Zack Hobson | 2013-12-27 08:09:21 -0800 | 
| commit | 4011b46ecbfb627317cc9a16d5e27244b076ec4e (patch) | |
| tree | 60570f1b1786e2aa8a6716c4b2b14c9f0b776763 /test/command_test.rb | |
| parent | 4f1d60ea4ebed0c0b20b8932866f25a5803cdd52 (diff) | |
| download | hcl-4011b46ecbfb627317cc9a16d5e27244b076ec4e.tar.bz2 | |
command:better stop test
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 | 
