Class: RSpec::Core::ExampleGroup
- Inherits:
-
Object
- Object
- RSpec::Core::ExampleGroup
- Defined in:
- lib/rspec/by/core_ext.rb
Instance Method Summary collapse
- #by(message, level = 0) ⇒ Object (also: #and_by)
Instance Method Details
#by(message, level = 0) ⇒ Object Also known as: and_by
30 31 32 33 34 35 36 37 38 |
# File 'lib/rspec/by/core_ext.rb', line 30 def by , level=0 pending() unless block_given? begin @by_reporter.by_started() yield ensure @by_reporter.by_ended end end |