Sha256: 6060fb2e4e83fe4026cc01affb0bd4025d831e400938c52bddb09898eaf50041

Contents?: true

Size: 782 Bytes

Versions: 29

Compression:

Stored size: 782 Bytes

Contents

# 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

29 entries across 29 versions & 1 rubygems

Version Path
macros4cuke-0.5.15 examples/demo/features/support/env.rb
macros4cuke-0.5.14 examples/demo/features/support/env.rb
macros4cuke-0.5.13 examples/demo/features/support/env.rb
macros4cuke-0.5.12 examples/demo/features/support/env.rb
macros4cuke-0.5.11 examples/demo/features/support/env.rb
macros4cuke-0.5.10 examples/demo/features/support/env.rb
macros4cuke-0.5.09 examples/demo/features/support/env.rb
macros4cuke-0.5.08 examples/demo/features/support/env.rb
macros4cuke-0.5.07 examples/demo/features/support/env.rb
macros4cuke-0.5.06 examples/demo/features/support/env.rb
macros4cuke-0.5.03 examples/demo/features/support/env.rb
macros4cuke-0.4.09 examples/demo/features/support/env.rb
macros4cuke-0.4.08 examples/demo/features/support/env.rb
macros4cuke-0.4.07 examples/demo/features/support/env.rb
macros4cuke-0.4.06 examples/demo/features/support/env.rb
macros4cuke-0.4.05 examples/demo/features/support/env.rb
macros4cuke-0.4.04 examples/demo/features/support/env.rb
macros4cuke-0.4.03 examples/demo/features/support/env.rb
macros4cuke-0.4.02 examples/demo/features/support/env.rb
macros4cuke-0.4.01 examples/demo/features/support/env.rb