Sha256: 6c0e243571a9fc1061b3a3088986499e475284742c53122ed552e7187be29293

Contents?: true

Size: 665 Bytes

Versions: 2

Compression:

Stored size: 665 Bytes

Contents

# File: cukedep_hooks.rb
# This Ruby file specifies the custom code
# associated with Cukedep hooks.

# The code block will be executed before
# the very first Cucumber invocation.
before_cuke(:all) do
  puts 'before all'
end

# The code block will be executed just before
# a Cucumber invocation.
# The argument is a frozen Array of feature file names
before_cuke(:each) do |_filenames|
  puts 'before each'
end

# The code block will be executed just after
# a Cucumber invocation.
after_cuke(:each) do
  puts 'after each'
end

# The code block will be executed just after
# the last Cucumber invocation.
after_cuke(:all) do
  puts 'after all'
end

# End of file

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cukedep-0.2.01 spec/cukedep/sample_features/cukedep_hooks.rb
cukedep-0.2.00 spec/cukedep/sample_features/cukedep_hooks.rb