Sha256: 03455d2a379e4d39b55e1193d77b05d4c845708c7861a8596fd672731ad734ee
Contents?: true
Size: 480 Bytes
Versions: 3
Compression:
Stored size: 480 Bytes
Contents
require File.join(File.dirname(__FILE__), '..', '..', '/test_helper') module Garb class ReportResponseTest < MiniTest::Unit::TestCase context "A ReportResponse" do should "parse results from atom xml" do filename = File.join(File.dirname(__FILE__), '..', '..', "/fixtures/report_feed.xml") response = ReportResponse.new(File.read(filename)) assert_equal ['33', '2', '1'], response.results.map(&:pageviews) end end end end
Version data entries
3 entries across 3 versions & 3 rubygems
Version | Path |
---|---|
shingara-garb-0.7.6 | test/unit/garb/report_response_test.rb |
garb-no-activesupport-0.7.4 | test/unit/garb/report_response_test.rb |
garb-0.7.4 | test/unit/garb/report_response_test.rb |