spec/spec_helper.rb in alf-0.10.1 vs spec/spec_helper.rb in alf-0.11.0
- old
+ new
@@ -1,6 +1,6 @@
-$LOAD_PATH.unshift File.expand_path('../../../lib', __FILE__)
+$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
require 'alf'
require "rspec"
Alf::Lispy.extend(Alf::Lispy)
@@ -11,6 +11,14 @@
def wlang(str, binding)
str.gsub(/\$\(([\S]+)\)/){ Kernel.eval($1, binding) }
end
require 'shared/an_operator_class'
+require 'shared/a_valid_type_implementation'
require 'shared/a_value'
+
+RSpec.configure do |config|
+ config.treat_symbols_as_metadata_keys_with_true_values = true
+ config.filter_run :hash_ordering => lambda{|val|
+ not(val) or (RUBY_VERSION >= "1.9")
+ }
+end