From c4c79cff0c7f1b096df1c32730833f07554a54e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorben=20Schro=CC=88der?= Date: Fri, 10 Dec 2010 12:13:32 +0100 Subject: [PATCH] Fixed spec labels according to the continue/resume change. Changed the readme. --- README.md | 15 ++++++++------- spec/timetrap_spec.rb | 4 ++-- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 2618a41..2d4b8fc 100644 --- a/README.md +++ b/README.md @@ -240,13 +240,6 @@ Commands usage: ``t configure`` -**continue** - Start the timer for the current timesheet with the same notes as the last entry. - If there is no last entry the new one has blank notes ore uses the optional - NOTES parameter. - - usage: ``t continue [--at TIME] [NOTES]`` - **display** Display a given timesheet. If no timesheet is specified, show the current timesheet. If ``all`` is passed as SHEET display all timesheets. Accepts @@ -298,6 +291,14 @@ Commands running, non-current sheet. usage: ``t out [--at TIME] [TIMESHEET]`` + +**resume** + Start the timer for the current timesheet with the same notes as the last entry. + If there is no last entry the new one has blank notes ore uses the optional + NOTES parameter. + + usage: ``t resume [--at TIME] [NOTES]`` + **sheet** Switch to a timesheet creating it if necessary. The default timesheet is diff --git a/spec/timetrap_spec.rb b/spec/timetrap_spec.rb index 73e9872..01bea37 100644 --- a/spec/timetrap_spec.rb +++ b/spec/timetrap_spec.rb @@ -678,14 +678,14 @@ def output @last_active.should_not be_nil end - it "should allow to continue the last active sheet" do + it "should allow to resume the last active sheet" do invoke 'resume' Timetrap::Timer.active_entry.note.should ==(@last_active.note) Timetrap::Timer.active_entry.start.should eql(@time) end - it "should allow to continue the activity with a given time" do + it "should allow to resume the activity with a given time" do invoke 'resume --at "10am 2008-10-03"' Timetrap::Timer.active_entry.start.should eql(Time.parse('2008-10-03 10:00'))