Skip to content

Commit

Permalink
comapre exception class by is_a rather then class.name ==
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Lilienthal committed Mar 25, 2013
1 parent b123ec2 commit ed0e877
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion features/steps/httparty_response_steps.rb
Expand Up @@ -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

0 comments on commit ed0e877

Please sign in to comment.