Sha256: 7d990c3b4ea837518ae336d65280e8a4507b8311b078d03229e7d3a2a8230ebc
Contents?: true
Size: 567 Bytes
Versions: 13
Compression:
Stored size: 567 Bytes
Contents
require 'spec_helper' describe Virtus::Attribute, '#options' do subject { object.options } let(:object) { described_class.new(:name, options) } let(:options) { { :primitive => primitive, :coercion_method => coercion_method } } let(:primitive) { stub('primitive') } let(:coercion_method) { stub('coercion_method') } it { should be_instance_of(Hash) } it { should eql(options.merge(:accessor => :public)) } end
Version data entries
13 entries across 13 versions & 2 rubygems