Sha256: 61ecde0aed3ceae49df355acb375b6f3a4f8c3858cf1c56d27e009189c6fe9d2

Contents?: true

Size: 335 Bytes

Versions: 36

Compression:

Stored size: 335 Bytes

Contents

require 'spec_helper'

RSpec.describe Item, type: :model do

  it_behaves_like "a DDR model"
  it_behaves_like "it has an association", :belongs_to, :parent, :is_member_of_collection, "Collection"
  it_behaves_like "it has an association", :has_many, :children, :is_part_of, "Component"
  it_behaves_like "a non-collection model"

end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
ddr-models-2.4.7 spec/models/item_spec.rb
ddr-models-2.4.6 spec/models/item_spec.rb
ddr-models-2.4.5 spec/models/item_spec.rb
ddr-models-2.4.4 spec/models/item_spec.rb
ddr-models-2.4.3 spec/models/item_spec.rb
ddr-models-2.4.2 spec/models/item_spec.rb
ddr-models-2.4.1 spec/models/item_spec.rb
ddr-models-2.4.0 spec/models/item_spec.rb
ddr-models-2.4.0.rc6 spec/models/item_spec.rb
ddr-models-2.4.0.rc5 spec/models/item_spec.rb
ddr-models-2.4.0.rc4 spec/models/item_spec.rb
ddr-models-2.4.0.rc3 spec/models/item_spec.rb
ddr-models-2.4.0.rc2 spec/models/item_spec.rb
ddr-models-2.4.0.rc1 spec/models/item_spec.rb
ddr-models-2.3.2 spec/models/item_spec.rb
ddr-models-2.3.1 spec/models/item_spec.rb
ddr-models-2.3.0 spec/models/item_spec.rb
ddr-models-2.2.0 spec/models/item_spec.rb
ddr-models-2.1.3 spec/models/item_spec.rb
ddr-models-2.1.2 spec/models/item_spec.rb