Sha256: 94ec5d8f7f7960dc714d0938746dbdfbe31e4045744845a091c598f5a4d4bfaf

Contents?: true

Size: 963 Bytes

Versions: 19

Compression:

Stored size: 963 Bytes

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.



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

19 entries across 19 versions & 1 rubygems

Version Path
macros4cuke-0.2.15 features/support/env.rb
macros4cuke-0.2.14 features/support/env.rb
macros4cuke-0.2.13 features/support/env.rb
macros4cuke-0.2.12 features/support/env.rb
macros4cuke-0.2.11 features/support/env.rb
macros4cuke-0.2.10 features/support/env.rb
macros4cuke-0.2.09 features/support/env.rb
macros4cuke-0.2.08 features/support/env.rb
macros4cuke-0.2.07 features/support/env.rb
macros4cuke-0.2.06 features/support/env.rb
macros4cuke-0.2.05 features/support/env.rb
macros4cuke-0.2.04 features/support/env.rb
macros4cuke-0.2.02 features/support/env.rb
macros4cuke-0.2.01 features/support/env.rb
macros4cuke-0.2.00 features/support/env.rb
macros4cuke-0.1.07 features/support/env.rb
macros4cuke-0.1.06 features/support/env.rb
macros4cuke-0.1.04 features/support/env.rb
macros4cuke-0.1.03 features/support/env.rb