1
0
Fork 0
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:
Nathan Lilienthal 2013-03-25 14:38:39 -04:00
parent b123ec296f
commit ed0e877021

View file

@ -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