有没有办法只输出描述中的字符串,它是块而不运行实际的规范。我们正在考虑将我们的任务列表迁移到这些字符串
describe "second group task001" do
it "second example in second group" do
#some really long task that shouldn't be run
FactoryGirl.create(:really_long_factory)
end
end
输出:
rspec this_spec.rb -fd
second group task001
second example in second group
谢谢