Merge pull request #1769 from beefproject/raketest
putting the file in the gemset instead
This commit is contained in:
13
Gemfile
13
Gemfile
@@ -77,6 +77,19 @@ end
|
||||
|
||||
# For running unit tests
|
||||
group :test do
|
||||
|
||||
if defined?(RUBY_ENGINE) && RUBY_ENGINE == "ruby"
|
||||
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
|
||||
if ENV['BEEF_TEST']
|
||||
gem 'test-unit'
|
||||
gem 'test-unit-full'
|
||||
|
||||
12
Rakefile
12
Rakefile
@@ -6,18 +6,6 @@
|
||||
require 'yaml'
|
||||
#require 'pry-byebug'
|
||||
|
||||
if defined?(RUBY_ENGINE) && RUBY_ENGINE == "ruby"
|
||||
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
|
||||
|
||||
task :default => ["quick"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user