Sha256: 0e1c637a972c0939fd4bb377da01f94c843092510c09cd3744e9a374df2877f3
Contents?: true
Size: 719 Bytes
Versions: 1
Compression:
Stored size: 719 Bytes
Contents
require File.dirname(__FILE__) + '/../test_helper' class ReportsTest < Test::Unit::TestCase include Harvest context "When using the TimeTracking API" do setup do Harvest.domain = 'pengwynn' Harvest.email = 'pengwynn@example.com' Harvest.password = 'OU812' @client = Harvest::Reports.new end should "retrieve project entries for a time range as string values" do stub_get "http://pengwynn%40example.com:OU812@pengwynn.harvestapp.com/projects/408960/entries?from=20090730&to=20090802", 'project_entries.xml' entries = @client.project_entries(408960, '20090730', '20090802') entries.size.should == 4 entries.first.hours.should == 4.5 end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
harvestr-0.0.1 | test/harvestr/reports_test.rb |