Sha256: 6b9ab7a439b54d6cd95d350413802235e13f269ee6daad56c213578333c6cba4

Contents?: true

Size: 657 Bytes

Versions: 40

Compression:

Stored size: 657 Bytes

Contents

require 'spec_helper'
require 'support/structural_metadata_helper'

module Ddr
  module Models
    RSpec.describe Structure, type: :model, structural_metadata: true do

      let(:structure) { FactoryGirl.build(:multiple_struct_maps_structure) }

      describe "#struct_maps" do
        let(:struct_maps) { structure.struct_maps }
        it "should include struct divs for each struct map" do
          expect(struct_maps.keys).to match_array([ 'default', 'reverse' ])
          expect(struct_maps['default']).to be_a(Ddr::Models::StructDiv)
          expect(struct_maps['reverse']).to be_a(Ddr::Models::StructDiv)
        end
      end

    end
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
ddr-models-2.4.7 spec/models/structure_spec.rb
ddr-models-2.4.6 spec/models/structure_spec.rb
ddr-models-2.4.5 spec/models/structure_spec.rb
ddr-models-2.4.4 spec/models/structure_spec.rb
ddr-models-2.4.3 spec/models/structure_spec.rb
ddr-models-2.4.2 spec/models/structure_spec.rb
ddr-models-2.4.1 spec/models/structure_spec.rb
ddr-models-2.4.0 spec/models/structure_spec.rb
ddr-models-2.4.0.rc6 spec/models/structure_spec.rb
ddr-models-2.4.0.rc5 spec/models/structure_spec.rb
ddr-models-2.4.0.rc4 spec/models/structure_spec.rb
ddr-models-2.4.0.rc3 spec/models/structure_spec.rb
ddr-models-2.4.0.rc2 spec/models/structure_spec.rb
ddr-models-2.4.0.rc1 spec/models/structure_spec.rb
ddr-models-2.3.2 spec/models/structure_spec.rb
ddr-models-3.0.0.beta.1 spec/models/structure_spec.rb
ddr-models-2.3.1 spec/models/structure_spec.rb
ddr-models-3.0.0.alpha.4 spec/models/structure_spec.rb
ddr-models-3.0.0.alpha.3 spec/models/structure_spec.rb
ddr-models-2.3.0 spec/models/structure_spec.rb