Sha256: 83034ec70abb3518278e364a8fb9e1a68036a8cc110b740dcdfa4b8ea55c4bfa
Contents?: true
Size: 837 Bytes
Versions: 11
Compression:
Stored size: 837 Bytes
Contents
# encoding: utf-8 # 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
11 entries across 11 versions & 1 rubygems