Sha256: 022d17585f523057dc6b82e3850b2195e1db973489b2ae57e67133ae1ec1f715
Contents?: true
Size: 1023 Bytes
Versions: 7
Compression:
Stored size: 1023 Bytes
Contents
require "bundler/setup" require 'aruba/cucumber' require 'clipboard' require 'securerandom' require 'fileutils' require_relative '../../lib/pws' # Make sure bin is available ENV['PATH'] = "#{File.expand_path(File.dirname(__FILE__) + '/../../bin')}#{File::PATH_SEPARATOR}#{ENV['PATH']}" # Hooks BEGIN{ $original_pws_file = ENV["PWS"] $original_iterations = ENV["PWS_ITERATIONS"] ENV["PWS_ITERATIONS"] = "2" } END{ Clipboard.clear ENV["PWS"] = $original_pws_file ENV["PWS_ITERATIONS"] = $original_iterations FileUtils.rm Dir['pws-test-*'] } Around do |_, block| # NOTE: You cannot parallelize the tests, because they use the clipboard and the env vars... Clipboard.clear ENV["PWS"] = File.expand_path('pws-test-' + SecureRandom.uuid) block.call FileUtils.rm ENV["PWS"] if File.exist? ENV["PWS"] end # Hacks Before('@slow-hack') do @aruba_io_wait_seconds = 3 end Before('@very-slow-hack') do @aruba_io_wait_seconds = 7 end Before('@wait-11s') do @aruba_timeout_seconds = 15 end
Version data entries
7 entries across 7 versions & 1 rubygems