Sha256: 628e790649901dea7fb590cd1406e853ab9d269c0554e7456e8e0a4c29dec715

Contents?: true

Size: 501 Bytes

Versions: 130

Compression:

Stored size: 501 Bytes

Contents

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

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

unless ENV['CI'] || macruby?
  require 'simplecov'
  SimpleCov.start do
    add_filter 'spec'
  end
end
require 'multi_json'
require 'rspec'

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

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

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

Version data entries

130 entries across 73 versions & 10 rubygems

Version Path
classiccms-0.3.8 vendor/bundle/gems/multi_json-1.3.5/spec/helper.rb
challah-0.6.1 vendor/bundle/gems/multi_json-1.3.5/spec/helper.rb
challah-0.6.1 vendor/bundle/gems/multi_json-1.3.6/spec/helper.rb
classiccms-0.3.7 vendor/bundle/gems/multi_json-1.3.5/spec/helper.rb
classiccms-0.3.7 vendor/bundle/gems/multi_json-1.3.4/spec/helper.rb
classiccms-0.3.6 vendor/bundle/gems/multi_json-1.3.4/spec/helper.rb
classiccms-0.3.6 vendor/bundle/gems/multi_json-1.3.5/spec/helper.rb
classiccms-0.3.5 vendor/bundle/gems/multi_json-1.3.5/spec/helper.rb
classiccms-0.3.5 vendor/bundle/gems/multi_json-1.3.4/spec/helper.rb
classiccms-0.3.4 vendor/bundle/gems/multi_json-1.3.5/spec/helper.rb
classiccms-0.3.4 vendor/bundle/gems/multi_json-1.3.4/spec/helper.rb
classiccms-0.3.3 vendor/bundle/gems/multi_json-1.3.5/spec/helper.rb
classiccms-0.3.3 vendor/bundle/gems/multi_json-1.3.4/spec/helper.rb
classiccms-0.3.2 vendor/bundle/gems/multi_json-1.3.4/spec/helper.rb
classiccms-0.3.2 vendor/bundle/gems/multi_json-1.3.5/spec/helper.rb
classiccms-0.3.1 vendor/bundle/gems/multi_json-1.3.5/spec/helper.rb
classiccms-0.3.1 vendor/bundle/gems/multi_json-1.3.4/spec/helper.rb
classiccms-0.3.0 vendor/bundle/gems/multi_json-1.3.5/spec/helper.rb
classiccms-0.3.0 vendor/bundle/gems/multi_json-1.3.4/spec/helper.rb
multi_json-1.3.6 spec/helper.rb