我有这样的方法
def className def method_name some code rescue some code and error message end end
那么,如何写下rspec来测试救援块..?
ruby rspec ruby-on-rails rescue
rescue ×1
rspec ×1
ruby ×1
ruby-on-rails ×1