Sha256: a5f283a6749fbe079ebfc379766bb1183b4d66f5003c1667e31cde42836cb4fe

Contents?: true

Size: 450 Bytes

Versions: 28

Compression:

Stored size: 450 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'
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
active_mocker-1.2.pre.10 Rakefile
active_mocker-1.2.pre.9 Rakefile
active_mocker-1.2.pre.8 Rakefile
active_mocker-1.2.pre.7 Rakefile
active_mocker-1.2.pre.6 Rakefile
active_mocker-1.2.pre.5 Rakefile
active_mocker-1.2.pre.4 Rakefile
active_mocker-1.2.pre.3 Rakefile
active_mocker-1.2.pre.2 Rakefile
active_mocker-1.2.pre.1 Rakefile
active_mocker-1.2.pre Rakefile
active_mocker-1.1.23 Rakefile
active_mocker-1.1.22 Rakefile
active_mocker-1.1.21 Rakefile
active_mocker-1.1.20 Rakefile
active_mocker-1.1.11 Rakefile
active_mocker-1.1.10 Rakefile
active_mocker-1.1.9 Rakefile
active_mocker-1.1.8 Rakefile
active_mocker-1.1.7 Rakefile