Sha256: d6b2b1373fcb0314e00beff4783bd6a8ea843cc6fb6ecd6691cc0e60f76055cd

Contents?: true

Size: 575 Bytes

Versions: 23

Compression:

Stored size: 575 Bytes

Contents

['..', '../../lib'].each do |path|
  $:.unshift dir if dir = File.expand_path(path, __FILE__) and not $:.include?(dir)
end

require 'simplecov'
SimpleCov.start

require 'multi_json'
require 'rspec'


class MockDecoder
  def self.decode(string, options = {})
    {'abc' => 'def'}
  end

  def self.encode(string)
    '{"abc":"def"}'
  end
end

class TimeWithZone
  def to_json(options = {})
    "\"2005-02-01T15:15:10Z\""
  end
end


def yajl_on_travis(engine)
  ENV['TRAVIS'] && engine == 'yajl' && jruby?
end

def jruby?
  defined?(RUBY_ENGINE) && RUBY_ENGINE == 'jruby'
end

Version data entries

23 entries across 23 versions & 3 rubygems

Version Path
challah-0.6.1 vendor/bundle/gems/multi_json-1.0.4/spec/helper.rb
challah-0.6.0 vendor/bundle/gems/multi_json-1.0.4/spec/helper.rb
challah-0.5.4 vendor/bundle/gems/multi_json-1.0.4/spec/helper.rb
challah-0.5.3 vendor/bundle/gems/multi_json-1.0.4/spec/helper.rb
challah-0.5.2 vendor/bundle/gems/multi_json-1.0.4/spec/helper.rb
challah-0.5.0 vendor/bundle/gems/multi_json-1.0.4/spec/helper.rb
challah-0.4.1 vendor/bundle/gems/multi_json-1.0.4/spec/helper.rb
challah-0.4.0 vendor/bundle/gems/multi_json-1.0.4/spec/helper.rb
challah-0.3.5 vendor/bundle/gems/multi_json-1.0.4/spec/helper.rb
challah-0.3.4 vendor/bundle/gems/multi_json-1.0.4/spec/helper.rb
challah-0.3.3 vendor/bundle/gems/multi_json-1.0.4/spec/helper.rb
challah-0.3.2 vendor/bundle/gems/multi_json-1.0.4/spec/helper.rb
challah-0.3.1 vendor/bundle/gems/multi_json-1.0.4/spec/helper.rb
challah-0.3.0 vendor/bundle/gems/multi_json-1.0.4/spec/helper.rb
challah-0.2.1 vendor/bundle/gems/multi_json-1.0.4/spec/helper.rb
challah-0.2.0 vendor/bundle/gems/multi_json-1.0.4/spec/helper.rb
nutshell-crm-0.0.6.alpha vendor/bundle/gems/multi_json-1.0.4/spec/helper.rb
nutshell-crm-0.0.5 vendor/bundle/gems/multi_json-1.0.4/spec/helper.rb
nutshell-crm-0.0.4 vendor/bundle/gems/multi_json-1.0.4/spec/helper.rb
nutshell-crm-0.0.3 vendor/bundle/gems/multi_json-1.0.4/spec/helper.rb