Sha256: 402d9d6877198c86d10747cb1175e97e43433b966f1518ecf56078f2c7ab6e74

Contents?: true

Size: 520 Bytes

Versions: 4

Compression:

Stored size: 520 Bytes

Contents

#
# testing ruote
#
# since Mon Oct  9 22:19:44 JST 2006
#

require File.join(File.dirname(__FILE__), 'path_helper')

require 'pp'
require 'test/unit'
require 'rubygems'

# Fail fast, especially when testing
#
Thread.abort_on_exception = true

# A helper method
#
def require_json

  return if $json_lib_loaded

  begin
    require 'yajl'
    require 'yajl/version'
    puts "using yajl #{Yajl::VERSION}"
  rescue LoadError
    require 'json'
    puts "using json #{JSON::VERSION}"
  end
  $json_lib_loaded = true
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ruote-2.3.0.3 test/test_helper.rb
ruote-2.3.0.2 test/test_helper.rb
ruote-2.3.0.1 test/test_helper.rb
ruote-2.3.0 test/test_helper.rb