Sha256: bd7494e3ab7b009d1df6cc5f131710e4ea8ea07fe885f78eb122f0aaaeac25bc

Contents?: true

Size: 1.12 KB

Versions: 2

Compression:

Stored size: 1.12 KB

Contents

unless defined?(::Before) && !Before.is_a?(Class)
  puts "#{defined?(Before).inspect}"
  puts "do we see this?"
  puts require 'cucumber'
  puts 'are we loaded?'
  puts "#{defined?(Before).inspect}"
  puts "do we see this?"
  puts !Before.is_a?(Class)
end

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
  FileUtils.rm_rf(current_dir)
end

Before('@puts') do
  @puts = true
end

Before('@announce-cmd') do
  @announce_cmd = true
end

Before('@announce-stdout') do
  @announce_stdout = true
end

Before('@announce-stderr') do
  @announce_stderr = true
end

Before('@announce-dir') do
  @announce_dir = true
end

Before('@announce-env') do
  @announce_env = true
end

Before('@announce') do
  @announce_stdout = true
  @announce_stderr = true
  @announce_cmd = true
  @announce_dir = true
  @announce_env = true
end

After do
  restore_env
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cuken-0.1.16 lib/cuken/api/aruba/hooks.rb
cuken-0.1.15 lib/cuken/api/aruba/hooks.rb