Sha256: 2882c77cdbc79ce274d9d45a595e282b22242296025292bab86d52ad22413834
Contents?: true
Size: 407 Bytes
Versions: 13
Compression:
Stored size: 407 Bytes
Contents
require 'spec_helper' describe Virtus::Attribute, '#value_coerced?' do subject { object.value_coerced?(value) } let(:object) { described_class::String.new(:name) } context 'when the value matches the primitive' do let(:value) { 'string' } it { should be(true) } end context 'when the value does not match the primitive' do let(:value) { 1 } it { should be(false) } end end
Version data entries
13 entries across 13 versions & 2 rubygems