From 4cf77bc4d4ebc593af4c9638fc878675141004ac Mon Sep 17 00:00:00 2001 From: Brian Cain Date: Fri, 16 Oct 2015 15:41:09 -0700 Subject: [PATCH] Fix modify spec test for requests --- spec/vmfloaty/pooler_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/vmfloaty/pooler_spec.rb b/spec/vmfloaty/pooler_spec.rb index 8fe7545..9d46a80 100644 --- a/spec/vmfloaty/pooler_spec.rb +++ b/spec/vmfloaty/pooler_spec.rb @@ -82,7 +82,7 @@ describe Pooler do it "modifies the TTL of a vm" do 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'}). to_return(:status => 200, :body => @modify_response_body_success, :headers => {})