Sha256: 8f8ccf3e96b01f6096e77b0e115bd148422416ba99fd705372743116bc8cfc1c

Contents?: true

Size: 422 Bytes

Versions: 4

Compression:

Stored size: 422 Bytes

Contents

module DataMapper::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

Version data entries

4 entries across 4 versions & 3 rubygems

Version Path
dm-rinda-adapter-0.1.2 spec/lib/collection_helpers.rb
dm-hibernate-adapter-0.1pre-java spec/transient/lib/collection_helpers.rb
dm-rinda-adapter-0.1.0 spec/lib/collection_helpers.rb
dm-core-0.10.2 spec/lib/collection_helpers.rb