rails rspec job with begin rescue 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) }