Sha256: fed10151530a077e2f9f9c9392be0e478ebb730741fd8d9fd4fdd55e0aab0bbf
Contents?: true
Size: 636 Bytes
Versions: 2
Compression:
Stored size: 636 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 raise "Tests Failed" unless system "rspec --seed #{random_seed}" raise "Tests Failed" unless system "cd sample_app_rails_4 && rspec --seed #{random_seed}" end def random_seed seed = rand(99999) puts "Seed: #{seed}" seed end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
active_mocker-1.4.2 | Rakefile |
active_mocker-1.4.1 | Rakefile |