我想做这样的事情:
some_method.should_raise <any kind of exception, I don't care>
我该怎么做?
some_method.should_raise exception
......不起作用.
ruby rspec exception-handling ruby-on-rails
exception-handling ×1
rspec ×1
ruby ×1
ruby-on-rails ×1