Sha256: 72ef4e5e915472fc7b813a1e63f42b9a7d44aded0a3df0de1a4f768bf1eb0592
Contents?: true
Size: 1.2 KB
Versions: 1
Compression:
Stored size: 1.2 KB
Contents
# File: env.rb # Purpose: Allow Cucumber to load the sample application configuration # and hooks. # It also demonstrates what to do in your env.rb file # to use the Macros4Cuke gem. require 'pp' #require_relative '../../lib/macros4cuke/macro-collection' #require_relative '../../lib/macros4cuke/formatting-service' #require_relative '../../lib/macros4cuke/formatter/to-gherkin' begin require 'simplecov' # Development dependency only... rescue LoadError => mute mute # .... So 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
macros4cuke-0.4.02 | features/support/env.rb |