spec/weary/request_spec.rb in weary-1.0.0.rc1 vs spec/weary/request_spec.rb in weary-1.0.0

- old
+ new

@@ -181,10 +181,11 @@ describe "#oauth" do it "adds a Middleware to the stack to sign the request" do req = described_class.new "https://api.github.com/gists", "POST" cred = ["consumer_key", "access_token"] - req.should_receive(:use).with(Weary::Middleware::OAuth, cred) + expected = {:consumer_key => cred.first, :token => cred.last} + req.should_receive(:use).with(Weary::Middleware::OAuth, [expected]) req.oauth *cred end it "returns true if auth has been set" do req = described_class.new "https://api.github.com/gists", "POST" \ No newline at end of file