[rspec-users] current example

David Chelimsky dchelimsky at gmail.com
Wed Mar 23 09:56:15 EDT 2011


On Mar 23, 2011, at 8:03 AM, Michael Guterl wrote:

> Is it possible to retrieve the example that is currently running?

describe "an example" do
  it "knows itself as example" do
    example.description.should eq("knows itself as example")
  end
end




More information about the rspec-users mailing list