如果我有这样的rspec
describe 'Foo' do
// init go here
describe 'Sub-Foo' do
it "should Bar" do
// test go here
// puts ... <-- need "Foo.Sub-Foo should Bar" here
end
end
end
如何在// test go here的测试上下文中获得"Foo.Sub-Foo should“?
它类似于使用specdocs的格式,但是如何将其放在内部呢?
https://stackoverflow.com/questions/1518264
复制相似问题