Sha256: 5514a365a40f5a755881007122557e470fc7de31b309c7a46002193017f3249a

Contents?: true

Size: 1.06 KB

Versions: 8

Compression:

Stored size: 1.06 KB

Contents

# encoding: utf-8	You should see a paragraph character: ยง
# File: env.rb
# Purpose: Allow Cucumber to load the sample application configuration
# and hooks.
# It also demonstrate what to do in your env.rb file 
# to use the Macros4Cuke gem.

begin
  require 'simplecov'
rescue LoadError
  # 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

8 entries across 8 versions & 1 rubygems

Version Path
macros4cuke-0.3.23 features/support/env.rb
macros4cuke-0.3.22 features/support/env.rb
macros4cuke-0.3.21 features/support/env.rb
macros4cuke-0.3.20 features/support/env.rb
macros4cuke-0.3.19 features/support/env.rb
macros4cuke-0.3.18 features/support/env.rb
macros4cuke-0.3.17 features/support/env.rb
macros4cuke-0.3.16 features/support/env.rb