Sha256: 138e25deda0dabaa380ab9237222c18cb6153741f32577577e8e299da38eaaf9

Contents?: true

Size: 439 Bytes

Versions: 13

Compression:

Stored size: 439 Bytes

Contents

require 'spec_helper'

exit true if jruby?

require 'shared/adapter'
require 'multi_json/adapters/oj'

describe MultiJson::Adapters::Oj do
  it_behaves_like 'an adapter', described_class

  describe '.dump' do
    describe '#dump_options' do
      around{ |example| with_default_options(&example) }

      it 'ensures indent is a Fixnum' do
        expect{ MultiJson.dump(42, :indent => '')}.not_to raise_error
      end
    end
  end
end

Version data entries

13 entries across 6 versions & 4 rubygems

Version Path
honeybadger-2.4.0 vendor/gems/ruby/1.9.1/gems/multi_json-1.10.1/spec/oj_adapter_spec.rb
honeybadger-2.4.0 vendor/gems/ruby/2.2.0/gems/multi_json-1.10.1/spec/oj_adapter_spec.rb
honeybadger-2.4.0 vendor/gems/ruby/2.1.0/gems/multi_json-1.10.1/spec/oj_adapter_spec.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/multi_json-1.10.1/spec/oj_adapter_spec.rb
apl-library-0.0.90 vendor/bundle/ruby/1.9.1/gems/multi_json-1.10.1/spec/oj_adapter_spec.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/1.8/gems/multi_json-1.10.1/spec/oj_adapter_spec.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/1.9.1/gems/multi_json-1.10.1/spec/oj_adapter_spec.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/2.1.0/gems/multi_json-1.10.1/spec/oj_adapter_spec.rb
apl-library-0.0.90 vendor/bundle/ruby/1.8/gems/multi_json-1.10.1/spec/oj_adapter_spec.rb
asana2flowdock-1.0.0 vendor/bundle/ruby/1.9.1/gems/multi_json-1.10.1/spec/oj_adapter_spec.rb
multi_json-1.10.1 spec/oj_adapter_spec.rb
multi_json-1.10.0 spec/oj_adapter_spec.rb
multi_json-1.9.3 spec/oj_adapter_spec.rb