Sha256: 81ab452b818720f5d3a0ec9000d0daf785ccb01714f359276caf16f8832bfc7a

Contents?: true

Size: 929 Bytes

Versions: 2

Compression:

Stored size: 929 Bytes

Contents

require 'spec_helper'

describe MWS::Report do
  describe ".method_missing" do
    describe ".get_report_list" do
      let(:valid_args){
        {
          key: "ThisIsSigningKey",
          endpoint: "mws.amazonservices.com",
          params: {
            "AWSAccessKeyId" => "AccessKeyIdString",
            "SellerId" => "SellerIdString",
            "ReportTypeList" => ["_GET_FLAT_FILE_ORDERS_DATA_"],
            "Acknowledged" => false,
            "MaxCount" => 100
          }
        }
      }

      before do
        response = double("request")
        expect(response).to receive(:body).and_return("BodyString")
        request = double("request")
        expect(request).to receive(:execute).and_return(response)
        expect(MWS::Request).to receive(:new).and_return(request)
      end

      subject { described_class.get_report_list(valid_args) }
      it { is_expected.to be_a String }
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
marketplace_web_service-0.0.4 spec/mws/report_spec.rb
marketplace_web_service-0.0.3 spec/mws/report_spec.rb