spec/unit/sucker/request_spec.rb in sucker-0.1.0 vs spec/unit/sucker/request_spec.rb in sucker-0.1.1
- old
+ new
@@ -14,9 +14,16 @@
"Version" => Sucker::AMAZON_API_VERSION }
@sucker.parameters.should eql default_parameters
end
end
+ context "#<<" do
+ it "merges a hash into the paramters" do
+ @sucker << { "foo" => "bar" }
+ @sucker.parameters["foo"].should eql "bar"
+ end
+ end
+
context "#curl" do
it "returns a cURL object" do
@sucker.curl.should be_an_instance_of Curl::Easy
end