Sha256: 233aff9a29f4f51b7ff7e4ef1abc3f5de98720ce0f9e927d8ef82939a0959e4c
Contents?: true
Size: 581 Bytes
Versions: 3
Compression:
Stored size: 581 Bytes
Contents
require File.join(File.dirname(__FILE__), '..', '/test_helper') class TestReport extend Garb::Resource end # Most of the resource testing is done as a part of ReportTest class ResourceTest < MiniTest::Unit::TestCase context "A class with Garb::Resource mixed in" do should "get results from GA" do profile = stub(:is_a? => true) TestReport.expects(:send_request_for_body).returns('xml') Garb::ReportResponse.expects(:new).with('xml').returns(mock(:results => 'analytics')) assert_equal 'analytics', TestReport.results(profile) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
garb-0.4.2 | test/unit/resource_test.rb |
garb-0.4.1 | test/unit/resource_test.rb |
garb-0.4.0 | test/unit/resource_test.rb |