Sha256: f69eb7b38594b574f0af8f3b166b811a9f08b8c27c69f9588b3ea2e9c03cc54e
Contents?: true
Size: 899 Bytes
Versions: 10
Compression:
Stored size: 899 Bytes
Contents
# Auto-generated by Remi. # Add user-customizations to env_app.rb require 'bundler/setup' require 'remi' require 'remi/cucumber' Remi::Settings.log_level = Logger::ERROR Before do # Restart the random number generator prior to each scenario to # ensure we have reproducibility of random output Kernel.srand(35983958269835333) end After do Kernel.srand end Before '~@fails' do def expect_cucumber(&block) block.call end end Before '@fails' do def expect_cucumber(&block) begin block.call rescue RSpec::Expectations::ExpectationNotMetError => err puts "Expected error: #{err}" end end end # Fix current time to the first time it is called in a test module TimeTesting def current @current_time ||= super end end class Time class << Time prepend TimeTesting end end # Include user-defined environment require_relative 'env_app.rb'
Version data entries
10 entries across 10 versions & 1 rubygems