Sha256: 7a41e30a4cc79870d4bbdb95ff60efbc6a23d86b2bc89bd070d0a1d7ca507cbc
Contents?: true
Size: 500 Bytes
Versions: 9
Compression:
Stored size: 500 Bytes
Contents
require 'spec_helper' describe Virtus::Attribute::DefaultValue::FromSymbol, '#call' do subject { object.call(instance) } let(:object) { described_class.new(value) } let(:instance) { mock('instance', value => retval) } let(:value) { :set_default } let(:retval) { mock('retval') } it { should be(retval) } it 'calls the method' do instance.should_receive(value).with(no_args) subject end end
Version data entries
9 entries across 9 versions & 2 rubygems