18
se ho rspec come questoCome ottenere il nome di contesto corrente di 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
Come posso ottenere "Foo.Sub-Foo dovrebbe Bar" all'interno del contesto di prova a // test andate qui?
È simile al formato con specdocs, ma come ottenerlo dentro se stesso?
È quello che sto cercando. Grazie – Jirapong
# {description] non funziona per me. –