Fix modify spec test for requests

This commit is contained in:
Brian Cain 2015-10-16 15:41:09 -07:00
parent 1cfe1b7131
commit 4cf77bc4d4

View file

@ -82,7 +82,7 @@ describe Pooler do
it "modifies the TTL of a vm" do it "modifies the TTL of a vm" do
stub_request(:put, "#{@vmpooler_url}/vm/fq6qlpjlsskycq6"). stub_request(:put, "#{@vmpooler_url}/vm/fq6qlpjlsskycq6").
with(:body => {"lifetime"=>"12"}, with(:body => {"{\"lifetime\":12}"=>true},
:headers => {'Accept'=>'*/*', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'Content-Type'=>'application/x-www-form-urlencoded', 'User-Agent'=>'Faraday v0.9.1', 'X-Auth-Token'=>'mytokenfile'}). :headers => {'Accept'=>'*/*', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'Content-Type'=>'application/x-www-form-urlencoded', 'User-Agent'=>'Faraday v0.9.1', 'X-Auth-Token'=>'mytokenfile'}).
to_return(:status => 200, :body => @modify_response_body_success, :headers => {}) to_return(:status => 200, :body => @modify_response_body_success, :headers => {})