Sha256: 44ad7b0f6a1e64003d7cff3469df6698fe5baea2d6e8c3ce0b79a0c50157521e

Contents?: true

Size: 163 Bytes

Versions: 5

Compression:

Stored size: 163 Bytes

Contents

shared_examples_for 'enrollmentable' do
  it { should have_many(:enrollments).dependent(:destroy) }
  it { should have_many(:students).through(:enrollments) }
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gaku-0.2.4 core/spec/support/models/shared_examples/enrollmentable.rb
gaku-0.2.3 core/spec/support/models/shared_examples/enrollmentable.rb
gaku-0.2.2 core/spec/support/models/shared_examples/enrollmentable.rb
gaku-0.2.1 core/spec/support/models/shared_examples/enrollmentable.rb
gaku-0.2.0 core/spec/support/models/shared_examples/enrollmentable.rb