This is absolutely stupid and unimportant, but I'm just curious: using RSpec , can I somehow get access to what is βdepthβ What am I in now? It...
describe SomeClass do
describe "#some_method" do
context "within some context" do
it "is possible, what I'm asking" do
mysterious_method_to_get_depth.should == 3
end
end
end
end
I really ask because I want to print some useful information, but so that the test output is still as readable as possible (i.e. with the right indent).
source
share