diff --git a/features/steps/httparty_response_steps.rb b/features/steps/httparty_response_steps.rb index bf535da2..e50dc41d 100644 --- a/features/steps/httparty_response_steps.rb +++ b/features/steps/httparty_response_steps.rb @@ -22,5 +22,5 @@ Then /it should raise (?:an|a) ([\w:]+) exception/ do |exception| @exception_from_httparty.should_not be_nil - @exception_from_httparty.class.name.should eql(exception) + @exception_from_httparty.should be_a(Object.const_get("::#{exception}")) end