spec/unit/virtus/attribute/embedded_value/coerce_spec.rb in virtus-0.2.0 vs spec/unit/virtus/attribute/embedded_value/coerce_spec.rb in virtus-0.3.0
- old
+ new
@@ -9,10 +9,10 @@
context 'when the value is a hash' do
let(:value) { Hash[:foo => 'bar'] }
context 'when the options include the model' do
- let(:object) { described_class.new(attribute_name, :model => model) }
+ let(:object) { described_class.new(attribute_name, :primitive => model) }
let(:model) { mock('model') }
let(:model_instance) { mock('model_instance') }
before do
model.should_receive(:new).with(value).and_return(model_instance)