Sha256: 85b3e18b08843c133575eb05c3719d60f458df97a2601f8c7570fde606762466
Contents?: true
Size: 707 Bytes
Versions: 5
Compression:
Stored size: 707 Bytes
Contents
ENV['FORCE_COLOR'] = 'true' require 'aruba/api' require 'aruba/cucumber' # Monkey patch aruba to filter out some stuff module Aruba::Api alias __all_stdout all_stdout def all_stdout unrandom(__all_stdout) end def unrandom(out) out = out.gsub(/#{Dir.pwd}\/tmp\/aruba/, '.') # Remove absolute paths out = out.gsub(/^\d+m\d+\.\d+s$/, '0m0.012s') # Make duration predictable out = out.gsub(/Coverage report generated for Cucumber Features to #{Dir.pwd}\/coverage.*\n$/, '') # Remove SimpleCov message end end Before do # Make sure bin/cucumber runs with SimpleCov enabled # set_env('SIMPLECOV', 'true') # Set a longer timeout for aruba @aruba_timeout_seconds = 15 end
Version data entries
5 entries across 5 versions & 3 rubygems