From c077207d33f02eb273f7e776c1df2331bfac83df Mon Sep 17 00:00:00 2001 From: Elijah Miller Date: Fri, 20 Feb 2009 09:32:53 +0800 Subject: [PATCH] Fixing the response code is a string issue in the story steps too. Signed-off-by: John Nunemaker --- features/steps/httparty_response_steps.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/steps/httparty_response_steps.rb b/features/steps/httparty_response_steps.rb index b00bf5a..f210cc6 100644 --- a/features/steps/httparty_response_steps.rb +++ b/features/steps/httparty_response_steps.rb @@ -17,7 +17,7 @@ Then /it should return a Hash equaling:/ do |hash_table| 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