Class: Adva::Tasks::Test::Unit

Inherits:
Thor::Group
  • Object
show all
Defined in:
lib/adva/tasks/core.rb

Instance Method Summary collapse

Instance Method Details

#unitObject



151
152
153
154
155
# File 'lib/adva/tasks/core.rb', line 151

def unit
  Rails.env = 'test'
  Dir[pattern].each { |file| require file }
  exit($1.exitstatus) if $1.exited? && $1.exitstatus != 0
end