Sha256: 037b05fd88b64d422cfd1edcdac3b9f9eb99b6d487c50946518ab10d993401f5

Contents?: true

Size: 878 Bytes

Versions: 10

Compression:

Stored size: 878 Bytes

Contents

# encoding: utf-8	You should see a paragraph character: ยง
# File: env.rb


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)
    # Replace every \" sequence by genuine "
    unescaped = someText.gsub(/\\"/, '"')
    $stderr.puts(unescaped)
  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

10 entries across 10 versions & 1 rubygems

Version Path
macros4cuke-0.3.12 examples/demo/features/support/env.rb
macros4cuke-0.3.11 examples/demo/features/support/env.rb
macros4cuke-0.3.10 examples/demo/features/support/env.rb
macros4cuke-0.3.09 examples/demo/features/support/env.rb
macros4cuke-0.3.08 examples/demo/features/support/env.rb
macros4cuke-0.3.07 examples/demo/features/support/env.rb
macros4cuke-0.3.06 examples/demo/features/support/env.rb
macros4cuke-0.3.03 examples/demo/features/support/env.rb
macros4cuke-0.3.02 examples/demo/features/support/env.rb
macros4cuke-0.3.01 examples/demo/features/support/env.rb