Sha256: 027f1443d7ae1dacdc31f34be7d701eb99075c348268cc1f84f0530c74da0065

Contents?: true

Size: 713 Bytes

Versions: 11

Compression:

Stored size: 713 Bytes

Contents

require 'spec_helper'
require 'dm-core/support/subject_set'
require 'unit/data_mapper/subject_set/shared/entries_spec'

describe 'DataMapper::SubjectSet#entries' do
  before :all do

    class ::Person
      attr_reader :name
      def initialize(name)
        @name = name
      end
    end

  end

  subject { set.entries }

  context 'with no entries' do
    let(:set) { DataMapper::SubjectSet.new }

    it_should_behave_like 'DataMapper::SubjectSet#entries with no entries'
  end

  context 'with entries' do
    let(:set)   { DataMapper::SubjectSet.new([ entry ]) }
    let(:entry) { Person.new('Alice')                   }

    it_should_behave_like 'DataMapper::SubjectSet#entries with entries'
  end
end

Version data entries

11 entries across 11 versions & 3 rubygems

Version Path
ardm-core-1.3.0 spec/unit/data_mapper/subject_set/entries_spec.rb
ardm-core-1.2.1 spec/unit/data_mapper/subject_set/entries_spec.rb
dm-core-1.2.1 spec/unit/data_mapper/subject_set/entries_spec.rb
ghost_dm-core-1.3.0.beta spec/unit/data_mapper/subject_set/entries_spec.rb
dm-core-1.2.0 spec/unit/data_mapper/subject_set/entries_spec.rb
dm-core-1.2.0.rc2 spec/unit/data_mapper/subject_set/entries_spec.rb
dm-core-1.2.0.rc1 spec/unit/data_mapper/subject_set/entries_spec.rb
dm-core-1.1.0 spec/unit/data_mapper/subject_set/entries_spec.rb
dm-core-1.1.0.rc3 spec/unit/data_mapper/subject_set/entries_spec.rb
dm-core-1.1.0.rc2 spec/unit/data_mapper/subject_set/entries_spec.rb
dm-core-1.1.0.rc1 spec/unit/data_mapper/subject_set/entries_spec.rb