Module: RSpec
- Defined in:
- lib/test_parser/extensions/rspec.rb
Class Method Summary collapse
Class Method Details
.with_world(world) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/test_parser/extensions/rspec.rb', line 7 def self.with_world(world) old_world, self.world = self.world, world result = yield(world) self.world = old_world result end |
.world=(new_world) ⇒ Object
3 4 5 |
# File 'lib/test_parser/extensions/rspec.rb', line 3 def self.world=(new_world) @world = new_world end |