diff options
| author | Zack Hobson | 2013-11-18 12:20:08 -0800 |
|---|---|---|
| committer | Zack Hobson | 2013-11-18 12:20:08 -0800 |
| commit | 392034ccb82add25c97c8175abbc6422aa871b27 (patch) | |
| tree | 0a95069bd1de35d0b51dd4de0ef775cb53421f71 /test | |
| parent | 27bc3cef233dd4f50c9957bae0ac90392ea99023 (diff) | |
| download | hcl-392034ccb82add25c97c8175abbc6422aa871b27.tar.bz2 | |
version 0.4.0
* added alias and unalias commands
* note and start commands are now optional/contextual
* note adds a new line
Diffstat (limited to 'test')
| -rw-r--r-- | test/day_entry_test.rb | 4 | ||||
| -rw-r--r-- | test/test_helper.rb | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/test/day_entry_test.rb b/test/day_entry_test.rb index c27ffda..a0b49a4 100644 --- a/test/day_entry_test.rb +++ b/test/day_entry_test.rb @@ -37,13 +37,13 @@ class DayEntryTest < Test::Unit::TestCase entry = HCl::DayEntry.new(:id => '1', :notes => 'yourmom.', :hours => '1.0') HCl::DayEntry.stubs(:post) entry.append_note('hi world') - assert_equal 'yourmom. hi world', entry.notes + assert_equal "yourmom.\nhi world", entry.notes end should "append to an undefined note" do entry = HCl::DayEntry.new(:id => '1', :notes => nil, :hours => '1.0') HCl::DayEntry.stubs(:post) entry.append_note('hi world') - assert_equal ' hi world', entry.notes + assert_equal 'hi world', entry.notes end end diff --git a/test/test_helper.rb b/test/test_helper.rb index fa69a86..9e12bac 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -4,4 +4,4 @@ require 'rubygems' require 'test/unit' require 'hcl/app' require 'shoulda' -require 'mocha' +require 'mocha/setup' |
