features/steps/httparty_response_steps.rb in kerryb-httparty-0.3.3 vs features/steps/httparty_response_steps.rb in kerryb-httparty-0.4.3
- old
+ new
@@ -15,10 +15,10 @@
@response_from_httparty[key].should eql(value)
end
end
Then /it should return a response with a (\d+) response code/ do |code|
- @response_from_httparty.code.should eql(code)
+ @response_from_httparty.code.should eql(code.to_i)
end
Then /it should raise an HTTParty::RedirectionTooDeep exception/ do
@exception_from_httparty.should_not be_nil
@exception_from_httparty.class.should eql(HTTParty::RedirectionTooDeep)