Sha256: 9ed6bf5e407ac8ad0d348a135aa6ee10d329a3732ca65d1a9845a99fa9c9340c

Contents?: true

Size: 352 Bytes

Versions: 6

Compression:

Stored size: 352 Bytes

Contents

require 'spec_helper'

RSpec.describe Component, type: :model, components: true do
  it_behaves_like "a DDR model"
  it_behaves_like "an object that can have content"
  it_behaves_like "it has an association", :belongs_to, :parent, :is_part_of, "Item"
  it_behaves_like "it has an association", :belongs_to, :target, :has_external_target, "Target"
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ddr-models-1.6.0 spec/models/component_spec.rb
ddr-models-1.5.0 spec/models/component_spec.rb
ddr-models-1.4.0 spec/models/component_spec.rb
ddr-models-1.3.0 spec/models/component_spec.rb
ddr-models-1.2.1 spec/models/component_spec.rb
ddr-models-1.2.0 spec/models/component_spec.rb