Sha256: c193ae72424256cdde75582cf6f24127865487a0e73fbca0ffc15c87d61c5c91

Contents?: true

Size: 904 Bytes

Versions: 1

Compression:

Stored size: 904 Bytes

Contents

require 'spec_helper'

describe MWS::Feed do
  describe ".method_missing" do
    describe ".submit_feed" do
      let(:valid_args){
        {
          key: "ThisIsSigningKey",
          endpoint: "mws.amazonservices.com",
          params: {
            "AWSAccessKeyId" => "AccessKeyIdString",
            "SellerId" => "SellerIdString",
            "FeedType" => "_POST_PRODUCT_PRICING_DATA_"
          },
          body: request_body
        }
      }
      let(:request_body){ "" }

      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.submit_feed(valid_args) }
      it { is_expected.to be_a String }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
marketplace_web_service-0.0.4 spec/mws/feed_spec.rb