Sha256: 4cec780b7c324aef66df41eeeac0627fc18516094338ec1d3d0f8edd2abd470d

Contents?: true

Size: 346 Bytes

Versions: 8

Compression:

Stored size: 346 Bytes

Contents

RSpec.describe Yaks::Mapper::Config do

  describe '#add_attributes' do
    it 'should add attributes' do
      expect(subject.add_attributes(:bar).add_attributes(:baz)).to eql described_class.new(
        attributes: [
          Yaks::Mapper::Attribute.new(:bar),
          Yaks::Mapper::Attribute.new(:baz),
        ]
      )
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
yaks-0.9.0 spec/unit/yaks/mapper/config_spec.rb
yaks-0.8.3 spec/unit/yaks/mapper/config_spec.rb
yaks-0.8.2 spec/unit/yaks/mapper/config_spec.rb
yaks-0.8.1 spec/unit/yaks/mapper/config_spec.rb
yaks-0.8.0 spec/unit/yaks/mapper/config_spec.rb
yaks-0.8.0.beta2 spec/unit/yaks/mapper/config_spec.rb
yaks-0.8.0.beta1 spec/unit/yaks/mapper/config_spec.rb
yaks-0.8.0.alpha spec/unit/yaks/mapper/config_spec.rb