Adds `RSpec.current_example`
Created by: alindeman
- Library authors that want to support RSpec < 2 and 3
can use
RSpec.current_example
to find the current example in a hook method. In RSpec versions before 2.99,self.example
can be used (butself.example
is deprecated in RSpec >= 2.99 and removed in RSpec 3).