stub rescue standard error rails test code example
Example: allow raise inside rescue rspec
it { expect { object.somethig rescue StandardError }.not_to change(cat, :status) }
it { expect { object.somethig rescue StandardError }.not_to change(cat, :status) }