My test is as follows:
it 'does return an error when passing a non-subscription or trial membership' do expect(helper.description_for_subscription(recurring_plan)).to raise_error(RuntimeError) end
My method returns this:
fail 'Unknown subscription model type!'
However, Rspec returns with this error message:
Failure/Error: expect(helper.description_for_subscription(recurring_plan)).to raise_error(RuntimeError) RuntimeError: Unknown subscription model type!
What's happening?
source share