Sha256: f0a6a1e9479e41e3265a3d11769aeb9dfc8beefd8c3d53177153526575b15807
Contents?: true
Size: 366 Bytes
Versions: 12
Compression:
Stored size: 366 Bytes
Contents
require 'spec_helper' describe Virtus::Attribute, '#value_coerced?' do subject { object.value_coerced?(input) } let(:object) { described_class.build(String) } context 'when input is coerced' do let(:input) { '1' } it { should be(true) } end context 'when input is not coerced' do let(:input) { 1 } it { should be(false) } end end
Version data entries
12 entries across 12 versions & 1 rubygems