1234567891011121314151617181920212223242526272829303132 |
- 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
|