spec/unit/sucker/request_spec.rb in sucker-0.2.2 vs spec/unit/sucker/request_spec.rb in sucker-0.3.0

- old
+ new

@@ -1,9 +1,9 @@ require "spec_helper" module Sucker - describe "Request" do + describe Request do before do @worker = Sucker.new end context ".new" do @@ -41,17 +41,16 @@ context "#get" do before do @worker.locale = "us" @worker.secret = "secret" - # Stub curl curl = @worker.curl curl.stub(:get).and_return(nil) curl.stub!(:body_str).and_return(fixture("single_item_lookup.us")) end - it "returns a hash" do - @worker.get.should be_an_instance_of Hash + it "returns a Response object" do + @worker.get.should be_an_instance_of Response end end context "#key=" do it "sets the Amazon AWS access key in the parameters" do