Sha256: 42f912ba28dd1d198b029c2e3c39feb7ce5a0f4e9b81e6037242e5bb1c379ea6
Contents?: true
Size: 435 Bytes
Versions: 15
Compression:
Stored size: 435 Bytes
Contents
require 'spec_helper' describe Virtus::Attribute, '#coercible?' do subject { object.coercible? } let(:object) { described_class.build(String, options) } let(:options) { Hash[:coerce => coerce] } context 'when :coerce is set to true' do let(:coerce) { true } it { is_expected.to be(true) } end context 'when :coerce is set to false' do let(:coerce) { false } it { is_expected.to be(false) } end end
Version data entries
15 entries across 13 versions & 5 rubygems