Sha256: eb48eb58b13a9b254fb0923d50751775811663381b07d57a2a21d042d4319002

Contents?: true

Size: 1.13 KB

Versions: 5

Compression:

Stored size: 1.13 KB

Contents

Before('@disable-bundler') do
  unset_bundler_env_vars
end

Before do
  @__aruba_original_paths = (ENV['PATH'] || '').split(File::PATH_SEPARATOR)
  ENV['PATH'] = ([File.expand_path('bin')] + @__aruba_original_paths).join(File::PATH_SEPARATOR)
end

After do
  ENV['PATH'] = @__aruba_original_paths.join(File::PATH_SEPARATOR)
end

Before('~@no-clobber') do
  clean_current_directory
end

Before('@puts') do
  announcer.mode = :puts
end

Before('@announce-cmd') do
  announcer.activate :command
end

Before('@announce-stdout') do
  announcer.activate :stdout
end

Before('@announce-stderr') do
  announcer.activate :stderr
end

Before('@announce-dir') do
  announcer.activate :directory
end

Before('@announce-env') do
  announcer.activate :environment
end

Before('@announce') do
  announcer.activate :command
  announcer.activate :stdout
  announcer.activate :stderr
  announcer.activate :directory
  announcer.activate :environment
end

Before('@debug') do
  require 'aruba/processes/debug_process'
  Aruba.process = Aruba::Processes::DebugProcess
end

Before('@ansi') do
  @aruba_keep_ansi = true
end

After do
  restore_env
  process_monitor.clear
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
aruba-0.7.4 lib/aruba/cucumber/hooks.rb
aruba-0.7.3 lib/aruba/cucumber/hooks.rb
aruba-0.7.2 lib/aruba/cucumber/hooks.rb
aruba-0.7.1 lib/aruba/cucumber/hooks.rb
aruba-0.7.0 lib/aruba/cucumber/hooks.rb