spec/cases/oauth_spec.rb in koala-1.4.1 vs spec/cases/oauth_spec.rb in koala-1.5.0rc1

- old
+ new

@@ -96,9 +96,15 @@ it "returns nil" do @oauth.stub(:parse_signed_request).and_return({}) @oauth.get_user_info_from_cookies(@cookie).should be_nil end + + it "logs a warning" do + @oauth.stub(:parse_signed_request).and_return({}) + Koala::Utils.logger.should_receive(:warn) + @oauth.get_user_info_from_cookies(@cookie) + end end context "if the code is present" do it "adds the access_token into the hash" do @oauth.get_user_info_from_cookies(@cookie)["access_token"].should == @token