Sha256: f022961b7bff9693556cc55b1c0635b7a91ceec0924e41e4c2ad00ffd7098cd1

Contents?: true

Size: 466 Bytes

Versions: 16

Compression:

Stored size: 466 Bytes

Contents

module DataMapper
  module Spec
    module CollectionHelpers
      module GroupMethods
        def self.extended(base)
          base.class_inheritable_accessor :loaded
          base.loaded = false
        end

        def should_not_be_a_kicker(ivar = :@articles)
          unless loaded
            it 'should not be a kicker' do
              instance_variable_get(ivar).should_not be_loaded
            end
          end
        end
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
ardm-core-1.3.0 lib/dm-core/spec/lib/collection_helpers.rb
ardm-core-1.2.1 lib/dm-core/spec/lib/collection_helpers.rb
dm-core-1.2.1 lib/dm-core/spec/lib/collection_helpers.rb
dm-core-1.2.0 lib/dm-core/spec/lib/collection_helpers.rb
dm-core-1.2.0.rc2 lib/dm-core/spec/lib/collection_helpers.rb
dm-core-1.2.0.rc1 lib/dm-core/spec/lib/collection_helpers.rb
dm-core-1.1.0 lib/dm-core/spec/lib/collection_helpers.rb
dm-core-1.1.0.rc3 lib/dm-core/spec/lib/collection_helpers.rb
dm-core-1.1.0.rc2 lib/dm-core/spec/lib/collection_helpers.rb
dm-core-1.1.0.rc1 lib/dm-core/spec/lib/collection_helpers.rb
dm-core-1.0.2 lib/dm-core/spec/lib/collection_helpers.rb
dm-core-1.0.1 lib/dm-core/spec/lib/collection_helpers.rb
dm-core-1.0.0 lib/dm-core/spec/lib/collection_helpers.rb
dm-core-1.0.0.rc3 lib/dm-core/spec/lib/collection_helpers.rb
dm-core-1.0.0.rc2 lib/dm-core/spec/lib/collection_helpers.rb
dm-core-1.0.0.rc1 lib/dm-core/spec/lib/collection_helpers.rb