Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit f12da3a

Browse files
committed
Remove example of code for RSpec 2
1 parent d50c083 commit f12da3a

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

lib/rspec/core.rb

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -100,23 +100,7 @@ def self.configure
100100
# The example being executed.
101101
#
102102
# The primary audience for this method is library authors who need access
103-
# to the example currently being executed and also want to support RSpec 2.
104-
#
105-
# @example support for RSpec version 2
106-
#
107-
# RSpec.configure do |c|
108-
# # context.example is deprecated, but RSpec.current_example is not
109-
# # available until RSpec 3.0.
110-
# fetch_current_example = RSpec.respond_to?(:current_example) ?
111-
# proc { RSpec.current_example } : proc { |context| context.example }
112-
#
113-
# c.before(:example) do
114-
# example = fetch_current_example.call(self)
115-
#
116-
# # ...
117-
# end
118-
# end
119-
#
103+
# to the example currently being executed.
120104
def self.current_example
121105
RSpec::Support.thread_local_data[:current_example]
122106
end

0 commit comments

Comments
 (0)