【发布时间】:2019-07-15 19:41:31
【问题描述】:
如何仅在设置标志时运行 rspec 测试?
我正在使用 Stripe-Ruby-Mock,他们使用 live 标志。但是,我不希望在未设置 -t live 时运行测试。
bundle exec rspec -t live spec
it "should run rspec test, only when live is true", live: true do
expect('value').to eq('value')
end
目前,我的测试在设置-t live 和未设置时运行。
【问题讨论】:
标签: rspec rspec-rails rspec3