Skip to content

RSpec.configuration.expose_current_running_example_as :example #963

Closed
alindeman opened this Issue Jul 7, 2013 · 2 comments

4 participants

@alindeman

More discussion at #666 (comment)

Given:

RSpec.configure do |c|
 c.expose_current_running_example_as :example
end

... users can refer to the current example in their hook methods via example.

This is meant to support older code that may be hard to upgrade to the newly preferred method (the example being passed as the first block argument to the hook).

@thomas-holmes
RSpec member

Have you started working on this yet? If not I'll try to dig into it soon.

@xaviershay
RSpec member

@thomas-holmes still keen? Go nuts.

@myronmarston myronmarston was assigned Nov 1, 2013
@soulcutter soulcutter closed this in #1133 Nov 1, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.