Sha256: 3167a9c1a6429b8b611f79fa7240f6a2399549d331672e9ffb84e80e230f8744

Contents?: true

Size: 463 Bytes

Versions: 2

Compression:

Stored size: 463 Bytes

Contents

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

        def should_not_be_a_kicker(ivar = :@articles)
          return if loaded

          it 'is not a kicker' do
            expect(instance_variable_get(ivar)).not_to be_loaded
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sbf-dm-core-1.3.0 lib/dm-core/spec/lib/collection_helpers.rb
sbf-dm-core-1.3.0.beta lib/dm-core/spec/lib/collection_helpers.rb