Sha256: ea99cace9a83f38c7f2f0bc8b74d3be4b9b41395341654692be62029adc9ad92
Contents?: true
Size: 551 Bytes
Versions: 5
Compression:
Stored size: 551 Bytes
Contents
require 'spec_helper' describe Ougai::Logging do describe '#weak_merge!' do let(:target) { m = described_class; Class.new{ include m }.new } it 'merges with unique elements in array' do result = nil target.instance_eval do result = weak_merge!({ foo: [1, 2], bar: 'base', baz: ['A'] }, { foo: [2, 3], bar: 'inferior', baz: ['B'] }) end expect(result[:foo]).to eq([2, 3, 1]) expect(result[:bar]).to eq('base') expect(result[:baz]).to eq(['B', 'A']) end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
ougai-1.6.3 | spec/logging_spec.rb |
ougai-1.6.1 | spec/logging_spec.rb |
ougai-1.5.8 | spec/logging_spec.rb |
ougai-1.5.7 | spec/logging_spec.rb |
ougai-1.5.6 | spec/logging_spec.rb |