18
如果我有這樣的如何獲取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
RSpec的我怎樣才能在測試//「Foo.Sub - 美孚應該BAR」測試上下文中去嗎?
它與specdocs格式類似,但如何讓它在它自己內?
這是我尋找的。謝謝 – Jirapong 2009-10-11 16:29:46
#{description]不適合我。 – 2015-04-17 20:12:28