Sha256: 0d2edab9e53f1e5ebd798483924d5060692d956d7f70de88c0ead97818e91f64
Contents?: true
Size: 744 Bytes
Versions: 1
Compression:
Stored size: 744 Bytes
Contents
require 'spec_helper' describe Amazon::Associates do describe ".item_search" do context "when omitting required parameters" do it "should fail" do proc { Amazon::Associates.item_search(nil) }.should raise_error(Amazon::Associates::RequiredParameterMissing) end end context "when the country is not recognized" do it "should fail" do proc { Amazon::Associates.item_search('ruby', :country => :asfdkjjk) }.should raise_error(Amazon::Associates::RequestError) end end context "on valid request" do before(:all) do @response = Amazon::Associates.item_search("ruby", :item_page => 2) end it_should_behave_like "Amazon Associates response" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
amazon-associates-0.7.2 | spec/requests/item_search_spec.rb |