Sha256: 2a2b379a8bc7f1f82136578a8686ac5eb0171fd690f0c16a072ad5e2b6bb6ba1
Contents?: true
Size: 617 Bytes
Versions: 1
Compression:
Stored size: 617 Bytes
Contents
require 'test/unit' require 'rubygems' require 'yaml' #require 'fakeweb' require File.join(File.dirname(__FILE__), '..', 'lib', 'amazon', 'mws') def xml_for(name) Pathname.new(File.dirname(__FILE__)).expand_path.dirname.join("examples/xml/#{name}.xml") end def mock_response(code, options={}) body = options[:body] content_type = options[:content_type] response = Net::HTTPResponse.send(:response_class, code.to_s).new("1.0", code.to_s, "message") response.instance_variable_set(:@body, body) response.instance_variable_set(:@read, true) response.content_type = content_type return response end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
amazon-mws-0.1.0 | test/test_helper.rb |