Sha256: 013cb5b245d8c01939989b4665f6a5a9879889ada64a9fdfc4d18a63c36162b2
Contents?: true
Size: 560 Bytes
Versions: 8
Compression:
Stored size: 560 Bytes
Contents
require 'spec_helper' require 'rollbar/json' require 'rollbar/configuration' describe Rollbar::JSON do before do Rollbar::JSON.setup end describe '.dump' do it 'has JSON as backend' do expect(Rollbar::JSON.backend_name).to be_eql(:json) end it 'calls JSON.generate' do expect(::JSON).to receive(:generate).once Rollbar::JSON.dump(:foo => :bar) end end describe '.load' do it 'calls MultiJson.load' do expect(::JSON).to receive(:load).once Rollbar::JSON.load(:foo => :bar) end end end
Version data entries
8 entries across 8 versions & 1 rubygems