Sha256: eae9b2994bbe3bae5bcef8206640d84306d8fd85e9f28078a68e1088fa7aa819

Contents?: true

Size: 403 Bytes

Versions: 2

Compression:

Stored size: 403 Bytes

Contents

require 'spec_helper'

describe Virtus::Attribute::EmbeddedValue, '.merge_options' do
  subject { object.merge_options(type, options) }

  let(:object)  { described_class }
  let(:type)    { stub('type')    }
  let(:options) { {}.freeze       }

  it { should be_instance_of(Hash) }

  it { should_not equal(options) }

  it 'merges the type in as the model' do
    should eql(:model => type)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
virtus-0.2.0 spec/unit/virtus/attribute/embedded_value/class_methods/merge_options_spec.rb
virtus-0.1.0 spec/unit/virtus/attribute/embedded_value/class_methods/merge_options_spec.rb