Sha256: de8e644ba9ac8890e4721428410c16fe3c4b33203ede95bb22b32e3294f07549

Contents?: true

Size: 1.28 KB

Versions: 11

Compression:

Stored size: 1.28 KB

Contents

require './test/test_helper'

class ReportTest < Minitest::Test

  # def get_first_report
  #   VCR.use_cassette('report search') do
  #     @first_report = Access::Report.search(member_key: 'API_RUBY_GEM_TEST', per_page: 1).reports.first
  #   end
  # end

  # def test_reports_search
  #   VCR.use_cassette('report search') do
  #     reports_response = Access::Report.search(member_key: 'API_RUBY_GEM_TEST', per_page: 1)
  #     assert reports_response.success
  #     first_report = reports_response.reports.first
  #     assert_kind_of Access::ReportResponse, reports_response
  #     assert_kind_of Access::Link, reports_response.links
  #     assert_kind_of Access::Info, reports_response.info
  #     assert_kind_of Array, reports_response.reports
  #     assert_kind_of Access::Report, first_report
  #     assert_kind_of Access::Link, first_report.links
  #   end
  # end

  # def test_reports_find
  #   get_first_report
  #   VCR.use_cassette('report find') do
  #     reports_response = Access::Report.find(@first_report.report_key, member_key: 'API_RUBY_GEM_TEST')
  #     assert reports_response.success
  #     first_report = reports_response.reports.first
  #     assert_kind_of Access::ReportResponse, reports_response
  #     assert_kind_of Access::Report, first_report
  #   end
  # end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
access-2.0.11 test/access/report_test.rb
access-2.0.10 test/access/report_test.rb
access-2.0.9 test/access/report_test.rb
access-2.0.8 test/access/report_test.rb
access-2.0.7 test/access/report_test.rb
access-2.0.5 test/access/report_test.rb
access-2.0.4 test/access/report_test.rb
access-2.0.3 test/access/report_test.rb
access-2.0.2 test/access/report_test.rb
access-2.0.1 test/access/report_test.rb
access-2.0.0 test/access/report_test.rb