Sha256: 7eabc86c605ac6468415ec79e05cbbb43bd5c6a3013c9c5e027b3b36130b3d12

Contents?: true

Size: 599 Bytes

Versions: 30

Compression:

Stored size: 599 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'

RSpec.configure do |config|
  config.expect_with :rspec do |c|
    c.syntax = :expect
  end
end

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

30 entries across 20 versions & 11 rubygems

Version Path
challah-1.0.0.beta vendor/bundle/gems/multi_json-1.4.0/spec/helper.rb
multi_json-1.5.1 spec/helper.rb
graphael-on-rails-0.5.1 vendor/bundle/gems/multi_json-1.5.0/spec/helper.rb
graphael-on-rails-0.0.1 vendor/bundle/gems/multi_json-1.5.0/spec/helper.rb
challah-0.9.1.beta.3 vendor/bundle/gems/multi_json-1.4.0/spec/helper.rb
devise_sociable-0.1.0 vendor/bundle/gems/multi_json-1.5.0/spec/helper.rb
backbone-queryparams-rails-0.0.1 vendor/bundle/gems/multi_json-1.5.0/spec/helper.rb
railscast-assets-0.0.2 vendor/bundle/gems/backbone-forms-on-rails-0.10.0/vendor/bundle/gems/multi_json-1.5.0/spec/helper.rb
railscast-assets-0.0.2 vendor/bundle/gems/multi_json-1.5.0/spec/helper.rb
backbone-forms-on-rails-0.10.0 vendor/bundle/gems/backbone-forms-on-rails-0.10.0/vendor/bundle/gems/multi_json-1.5.0/spec/helper.rb
backbone-forms-on-rails-0.10.0 vendor/bundle/gems/multi_json-1.5.0/spec/helper.rb
backbone-deep-rails-0.0.1 vendor/bundle/gems/multi_json-1.5.0/spec/helper.rb
challah-0.9.1.beta vendor/bundle/gems/multi_json-1.4.0/spec/helper.rb
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/multi_json-1.5.0/spec/helper.rb
challah-0.9.0 vendor/bundle/gems/multi_json-1.4.0/spec/helper.rb
jquery_regex-0.0.3 vendor/bundle/gems/jquery_regex-0.0.2/vendor/bundle/gems/multi_json-1.5.0/spec/helper.rb
jquery_regex-0.0.3 vendor/bundle/gems/jquery_regex-0.0.1/vendor/bundle/gems/multi_json-1.5.0/spec/helper.rb
jquery_regex-0.0.3 vendor/bundle/gems/jquery_regex-0.0.2/vendor/bundle/gems/jquery_regex-0.0.1/vendor/bundle/gems/multi_json-1.5.0/spec/helper.rb
jquery_regex-0.0.3 vendor/bundle/gems/jquery_regex-0.0.3/vendor/bundle/gems/jquery_regex-0.0.1/vendor/bundle/gems/multi_json-1.5.0/spec/helper.rb
jquery_regex-0.0.3 vendor/bundle/gems/jquery_regex-0.0.3/vendor/bundle/gems/jquery_regex-0.0.2/vendor/bundle/gems/jquery_regex-0.0.1/vendor/bundle/gems/multi_json-1.5.0/spec/helper.rb