spec/unit/resource/http_request_spec.rb in chef-10.14.4 vs spec/unit/resource/http_request_spec.rb in chef-10.16.0.rc.0

- old
+ new

@@ -1,7 +1,8 @@ # # Author:: Adam Jacob (<adam@opscode.com>) +# Author:: Tyler Cloke (<tyler@opscode.com>) # Copyright:: Copyright (c) 2008 Opscode, Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -39,8 +40,20 @@ end it "should set message to a string" do @resource.message "monkeybars" @resource.message.should eql("monkeybars") + end + + describe "when it has a message and headers" do + before do + @resource.url("http://www.trololol.net") + @resource.message("Get sum post brah.") + @resource.headers({"head" => "tail"}) + end + + it "returns the url as its identity" do + @resource.identity.should == "http://www.trololol.net" + end end end