Module: Nonnative::Cucumber::WorldHooks

Included in:
Registration
Defined in:
lib/nonnative/cucumber.rb

Instance Method Summary collapse

Instance Method Details

#install_hooksObject



25
26
27
28
29
30
31
# File 'lib/nonnative/cucumber.rb', line 25

def install_hooks
  Before('@startup') { Nonnative.start }
  After('@startup') { Nonnative.stop }
  After('@manual') { Nonnative.stop }
  Before('@clear') { Nonnative.clear }
  After('@reset') { Nonnative.reset }
end

#install_worldObject



19
20
21
22
23
# File 'lib/nonnative/cucumber.rb', line 19

def install_world
  World(::RSpec::Benchmark::Matchers)
  World(::RSpec::Matchers)
  World(::RSpec::Wait)
end