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