【发布时间】:2009-10-05 04:27:01
【问题描述】:
如果我有这样的 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 Bar”?
它类似于带有规范文档的格式,但是如何将其放入自身?
【问题讨论】:
标签: ruby-on-rails ruby rspec