Sha256: b47d9b532fe41ef3e79e76b725a2eeef469acf68212dbc117ef3c232d5e5826a

Contents?: true

Size: 1.02 KB

Versions: 18

Compression:

Stored size: 1.02 KB

Contents

# File: env.rb
# Purpose: Allow Cucumber to load the sample application configuration
# and hooks.
# It also demonstrates what to do in your env.rb file 
# to use the Macros4Cuke gem.

require 'pp'

begin
  require 'simplecov' # Development dependency only...
rescue LoadError => mute
  mute # .... So gobble silently the exception if simplecov isn't installed.
end


module DemoMacros4Cuke  # Use the module as a namespace

 
# Class created just for testing and demonstration purposes.
# Its instance, will record the output emitted by the steps.

class TracingWorld
  # Will contain the text emitted by the steps
  attr_reader(:trace_steps)
  
  
  def initialize()
    # Constructor  
    @trace_steps = []
  end

  public

  # Write the given text to the error console
  def show(someText)
    $stderr.puts(someText)
  end

  
end # class

end # module

# For testing purpose we override the default Cucumber behaviour
# making our world object an instance of the TracingWorld class
World { DemoMacros4Cuke::TracingWorld.new }

# End of file

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
macros4cuke-0.5.18 features/support/env.rb
macros4cuke-0.5.17 features/support/env.rb
macros4cuke-0.5.16 features/support/env.rb
macros4cuke-0.5.15 features/support/env.rb
macros4cuke-0.5.14 features/support/env.rb
macros4cuke-0.5.13 features/support/env.rb
macros4cuke-0.5.12 features/support/env.rb
macros4cuke-0.5.11 features/support/env.rb
macros4cuke-0.5.10 features/support/env.rb
macros4cuke-0.5.09 features/support/env.rb
macros4cuke-0.5.08 features/support/env.rb
macros4cuke-0.5.07 features/support/env.rb
macros4cuke-0.5.06 features/support/env.rb
macros4cuke-0.5.03 features/support/env.rb
macros4cuke-0.4.09 features/support/env.rb
macros4cuke-0.4.08 features/support/env.rb
macros4cuke-0.4.07 features/support/env.rb
macros4cuke-0.4.06 features/support/env.rb