Sha256: 7016f43a9b008875783cfd260f7a74f9cfa564920072116c25bdc969c0e3edf4
Contents?: true
Size: 470 Bytes
Versions: 12
Compression:
Stored size: 470 Bytes
Contents
require 'spec_helper' describe Virtus::Attribute::Boolean, '#value_coerced?' do subject { object.value_coerced?(input) } let(:object) { described_class.build('Boolean') } context 'when input is true' do let(:input) { true } it { should be(true) } end context 'when input is false' do let(:input) { false } 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