Module: TestUnitSpecHelper

Includes:
RubyForker
Defined in:
lib/vendor/plugins/rspec/spec/spec/interop/test/unit/test_unit_spec_helper.rb

Instance Method Summary collapse

Methods included from RubyForker

#ruby

Instance Method Details

#resourcesObject



7
8
9
# File 'lib/vendor/plugins/rspec/spec/spec/interop/test/unit/test_unit_spec_helper.rb', line 7

def resources
  File.dirname(__FILE__) + "/resources"
end

#run_script(file_name) ⇒ Object



11
12
13
14
15
16
17
# File 'lib/vendor/plugins/rspec/spec/spec/interop/test/unit/test_unit_spec_helper.rb', line 11

def run_script(file_name)
  output = ruby(file_name)
  if !$?.success? || output.include?("FAILED") || output.include?("Error")
    raise output
  end
  output
end