Sha256: 11524f377a270729944b3467830a7b8a3202a455937bc2782e0f6433ec3daa5c
Contents?: true
Size: 397 Bytes
Versions: 12
Compression:
Stored size: 397 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 { should be(true) } end context 'when :lazy is set to false' do let(:lazy) { false } it { should be(false) } end end
Version data entries
12 entries across 12 versions & 1 rubygems