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.7.5 vendor/bundle/gems/multi_json-1.3.4/spec/helper.rb
classiccms-0.7.5 vendor/bundle/gems/multi_json-1.3.5/spec/helper.rb
classiccms-0.7.4 vendor/bundle/gems/multi_json-1.3.4/spec/helper.rb
classiccms-0.7.4 vendor/bundle/gems/multi_json-1.3.5/spec/helper.rb
classiccms-0.7.3 vendor/bundle/gems/multi_json-1.3.5/spec/helper.rb
classiccms-0.7.3 vendor/bundle/gems/multi_json-1.3.4/spec/helper.rb
classiccms-0.7.2 vendor/bundle/gems/multi_json-1.3.5/spec/helper.rb
classiccms-0.7.2 vendor/bundle/gems/multi_json-1.3.4/spec/helper.rb
classiccms-0.7.1 vendor/bundle/gems/multi_json-1.3.4/spec/helper.rb
classiccms-0.7.1 vendor/bundle/gems/multi_json-1.3.5/spec/helper.rb
classiccms-0.7.0 vendor/bundle/gems/multi_json-1.3.4/spec/helper.rb
classiccms-0.7.0 vendor/bundle/gems/multi_json-1.3.5/spec/helper.rb
classiccms-0.6.9 vendor/bundle/gems/multi_json-1.3.4/spec/helper.rb
classiccms-0.6.9 vendor/bundle/gems/multi_json-1.3.5/spec/helper.rb
challah-rolls-0.2.0 vendor/bundle/gems/challah-0.8.3/vendor/bundle/gems/multi_json-1.3.6/spec/helper.rb
challah-rolls-0.2.0 vendor/bundle/gems/challah-0.8.0.pre/vendor/bundle/gems/multi_json-1.3.6/spec/helper.rb
challah-rolls-0.2.0 vendor/bundle/gems/multi_json-1.3.6/spec/helper.rb
challah-0.8.3 vendor/bundle/gems/multi_json-1.3.6/spec/helper.rb
classiccms-0.6.8 vendor/bundle/gems/multi_json-1.3.4/spec/helper.rb
classiccms-0.6.8 vendor/bundle/gems/multi_json-1.3.5/spec/helper.rb