From 96e41e0cb603f14869523e5245e3c4f59735c49f Mon Sep 17 00:00:00 2001 From: geemus Date: Wed, 15 May 2013 09:42:36 -0500 Subject: [PATCH] [dynect] remove should usage in tests --- tests/dynect/requests/dns/dns_tests.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/dynect/requests/dns/dns_tests.rb b/tests/dynect/requests/dns/dns_tests.rb index f308f3f3e..a65deb868 100644 --- a/tests/dynect/requests/dns/dns_tests.rb +++ b/tests/dynect/requests/dns/dns_tests.rb @@ -175,7 +175,7 @@ Shindo.tests('Dynect::dns | DNS requests', ['dynect', 'dns']) do old_mock_value = Excon.defaults[:mock] Excon.stubs.clear - tests("returns final response from a complete job") do + tests("returns final response from a complete job").returns({"status" => "success"}) do begin Excon.defaults[:mock] = true @@ -184,14 +184,14 @@ Shindo.tests('Dynect::dns | DNS requests', ['dynect', 'dns']) do Excon.stub({:method => :get, :path => "/REST/Zone/example.com"}, {:status => 307, :body => '/REST/Job/150576635', :headers => {'Content-Type' => 'text/html', 'Location' => '/REST/Job/150576635'}}) Excon.stub({:method => :get, :path => "/REST/Job/150576635"}, {:status => 307, :body => '{"status":"success"}', :headers => {'Content-Type' => 'application/json'}}) - Fog::DNS::Dynect::Real.new.request(:method => :get, :path => "Zone/example.com").body.should == { "status" => "success" } + Fog::DNS::Dynect::Real.new.request(:method => :get, :path => "Zone/example.com").body ensure Excon.stubs.clear Excon.defaults[:mock] = old_mock_value end end - tests("passes expects through when polling a job") do + tests("passes expects through when polling a job").returns({"status" => "success"}) do begin Excon.defaults[:mock] = true @@ -200,7 +200,7 @@ Shindo.tests('Dynect::dns | DNS requests', ['dynect', 'dns']) do Excon.stub({:method => :get, :path => "/REST/Zone/example.com"}, {:status => 307, :body => '/REST/Job/150576635', :headers => {'Content-Type' => 'text/html', 'Location' => '/REST/Job/150576635'}}) Excon.stub({:method => :get, :path => "/REST/Job/150576635"}, {:status => 404, :body => '{"status":"success"}', :headers => {'Content-Type' => 'application/json'}}) - Fog::DNS::Dynect::Real.new.request(:method => :get, :expects => 404, :path => "Zone/example.com").body.should == { "status" => "success" } + Fog::DNS::Dynect::Real.new.request(:method => :get, :expects => 404, :path => "Zone/example.com").body ensure Excon.stubs.clear Excon.defaults[:mock] = old_mock_value