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

Version Path
virtus-1.0.3 spec/unit/virtus/attribute/lazy_predicate_spec.rb
virtus-1.0.2 spec/unit/virtus/attribute/lazy_predicate_spec.rb
virtus-1.0.1 spec/unit/virtus/attribute/lazy_predicate_spec.rb
virtus-1.0.0 spec/unit/virtus/attribute/lazy_predicate_spec.rb
virtus-1.0.0.rc2 spec/unit/virtus/attribute/lazy_predicate_spec.rb
virtus-1.0.0.rc1 spec/unit/virtus/attribute/lazy_predicate_spec.rb
virtus-1.0.0.beta8 spec/unit/virtus/attribute/lazy_predicate_spec.rb
virtus-1.0.0.beta7 spec/unit/virtus/attribute/lazy_predicate_spec.rb
virtus-1.0.0.beta6 spec/unit/virtus/attribute/lazy_predicate_spec.rb
virtus-1.0.0.beta5 spec/unit/virtus/attribute/lazy_predicate_spec.rb
virtus-1.0.0.beta4 spec/unit/virtus/attribute/lazy_predicate_spec.rb
virtus-1.0.0.beta3 spec/unit/virtus/attribute/lazy_predicate_spec.rb