Sha256: 28d21301a9ebed2d1333916d9c3215b68eae279aaa0f729997c6bcbf350b4360

Contents?: true

Size: 866 Bytes

Versions: 4

Compression:

Stored size: 866 Bytes

Contents

HERE = File.dirname(__FILE__) unless defined?(HERE)
ROOT = File.join(HERE, "..") unless defined?(ROOT)

$LOAD_PATH << File.join(ROOT, "lib")
$LOAD_PATH << File.join(HERE, "support")

require "yaml"
if ENV["YAMLER"] && defined?(YAML::ENGINE)
  YAML::ENGINE.yamler = ENV["YAMLER"]
  puts "Running specs in Ruby #{RUBY_VERSION} with '#{YAML::ENGINE.yamler}' YAML engine."
end

if defined?(JRUBY_VERSION) && ENV["JRUBY_OPTS"]
  puts "Running JRuby in #{RUBY_VERSION} mode."
end

# Caching references to these methods before loading safe_yaml in order to test
# that they aren't touched unless you actually require safe_yaml (see yaml_spec.rb).
ORIGINAL_YAML_LOAD      = YAML.method(:load)
ORIGINAL_YAML_LOAD_FILE = YAML.method(:load_file)

require "safe_yaml/load"
require "ostruct"
require "hashie"
require "heredoc_unindent"

require File.join(HERE, "resolver_specs")

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
safe_yaml-1.0.1 spec/spec_helper.rb
safe_yaml-1.0.0 spec/spec_helper.rb
safe_yaml-1.0.0rc2 spec/spec_helper.rb
safe_yaml-1.0.0rc1 spec/spec_helper.rb