diff options
Diffstat (limited to 'test/day_entry_test.rb')
| -rw-r--r-- | test/day_entry_test.rb | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/test/day_entry_test.rb b/test/day_entry_test.rb index 581b22b..1df4cba 100644 --- a/test/day_entry_test.rb +++ b/test/day_entry_test.rb @@ -19,38 +19,6 @@ class DayEntryTest < HCl::TestCase assert_equal "Taco Town - Pizza Taco - Preparation (1:12)", entry.to_s end - def test_from_xml - entries = HCl::DayEntry.from_xml(<<-EOD) -<daily> - <for_day type="date">Wed, 18 Oct 2006</for_day> - <day_entries> - <day_entry> - <id type="integer">195168</id> - <client>Iridesco</client> - <project>Harvest</project> - <task>Backend Programming</task> - <hours type="float">2.06</hours> - <notes>Test api support</notes> - <timer_started_at type="datetime"> - Wed, 18 Oct 2006 09:53:06 -0000 - </timer_started_at> - <created_at type="datetime">Wed, 18 Oct 2006 09:53:06 -0000</created_at> - </day_entry> - </day_entries> -</daily> - EOD - assert_equal 1, entries.size - { - :project => 'Harvest', - :client => 'Iridesco', - :task => 'Backend Programming', - :notes => 'Test api support', - :hours => '2.06', - }.each do |method, value| - assert_equal value, entries.first.send(method) - end - end - def test_append_note entry = HCl::DayEntry.new(:id => '1', :notes => 'yourmom.', :hours => '1.0') HCl::DayEntry.stubs(:post) |
