require 'request_helper' require 'mws/reports/requests/report_acknowledgements' class ReportAcknowledgementsTest < RequestTest def mock_response_body <<-EOF 1 841997483 _GET_MERCHANT_LISTINGS_DATA_ 2234038326 2009-01-06T03:48:36+00:00 true 2009-02-20T02:10:41+00:00 EOF end def setup @report = MWS::Reports::Requests::ReportAcknowledgements.new(mock_client) end def test_acknowledges_reports res = @report.acknowledge('123') refute_empty res end def test_unacknowledges_reports res = @report.unacknowledge('123') refute_empty res end end