阅读背景:

即使该方法引发错误,Rspec raise_error测试也会失败

来源:互联网 

My test looks like this:

我的测试看起来像这样:

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) endit 'do




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: