mirror of
https://github.com/jnunemaker/httparty
synced 2023-03-27 23:23:07 -04:00
comapre exception class by is_a rather then class.name ==
This commit is contained in:
parent
b123ec296f
commit
ed0e877021
1 changed files with 1 additions and 1 deletions
|
@ -22,5 +22,5 @@ end
|
|||
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue