spec/unit/sucker/request_spec.rb in sucker-1.0.0.beta.1 vs spec/unit/sucker/request_spec.rb in sucker-1.0.0.beta.2
- old
+ new
@@ -1,6 +1,5 @@
-# encoding: utf-8
require "spec_helper"
module Sucker
describe Request do
use_vcr_cassette "unit/sucker/request", :record => :new_episodes
@@ -26,19 +25,13 @@
worker << { "foo" => "bar" }
worker.parameters["foo"].should eql "bar"
end
end
- context "api_version" do
- it "has a default value" do
- worker.api_version.should_not be_nil
- end
- end
-
- context "#api_version=" do
+ context "#version=" do
it "sets the Amazon API version" do
- worker.api_version = "foo"
- worker.api_version.should eql "foo"
+ worker.version = "foo"
+ worker.parameters["Version"].should eql "foo"
end
end
context "#associate_tag=" do
it "sets the associate tag in the parameters" do