Sha256: e40791e8d30cc670f1eea35925c4cc5a3d8811efae25cdcdf2eed600b354ef2a
Contents?: true
Size: 524 Bytes
Versions: 25
Compression:
Stored size: 524 Bytes
Contents
require "bundler/gem_tasks" task :default => 'specs' task :specs do if defined?(RUBY_ENGINE) && RUBY_ENGINE == "ruby" && RUBY_VERSION >= "1.9" module Kernel alias :__at_exit :at_exit def at_exit(&block) __at_exit do exit_status = $!.status if $!.is_a?(SystemExit) block.call exit exit_status if exit_status end end end end sh "bundle exec rspec --seed #{random_seed}" end def random_seed seed = rand(99999) puts "Seed: #{seed}" seed end
Version data entries
25 entries across 25 versions & 1 rubygems