Module: Nonnative::Cucumber::WorldHooks

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

Instance Method Summary collapse

Instance Method Details

#install_hooksObject



45
46
47
48
49
50
51
# File 'lib/nonnative/cucumber.rb', line 45

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



39
40
41
42
43
# File 'lib/nonnative/cucumber.rb', line 39

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