Change soft-fail to use the config, rather than env
[rbx.git] / spec / frozen / 1.8 / spec_helper.rb
blobc74925af6b429163e33a931940244c68c4aaa56f
1 unless ENV['MSPEC_RUNNER']
2   begin
3     require 'mspec/version'
4     require 'mspec/helpers'
5     require 'mspec/guards'
6     require 'mspec/runner/shared'
7     require 'mspec/matchers/be_ancestor_of'
8     require 'mspec/matchers/output'
9     require 'mspec/matchers/output_to_fd'
10     require 'mspec/matchers/complain'
11     require 'mspec/matchers/equal_element'
12     require 'mspec/matchers/equal_utf16'
13     require 'mspec/matchers/match_yaml'
15     TOLERANCE = 0.00003 unless Object.const_defined?(:TOLERANCE)
16   rescue LoadError
17     puts "Please install the MSpec gem to run the specs."
18     exit 1
19   end
20 end
22 v = MSpec::VERSION.split('.').collect { |d| "1%02d" % d.to_i }.join.to_i
23 unless v >= 101104100
24   puts "Please install MSpec version >= 1.4.0 to run the specs"
25   exit 1
26 end
28 $VERBOSE = nil unless ENV['OUTPUT_WARNINGS']
30 def has_tty?
31   if STDOUT.tty? then
32     yield
33   end
34 end