spec/models/structure_spec.rb in ddr-models-2.0.0.pre.2 vs spec/models/structure_spec.rb in ddr-models-2.0.0.pre.3
- old
+ new
@@ -3,16 +3,17 @@
module Ddr
module Models
RSpec.describe Structure, type: :model, structural_metadata: true do
- describe "#struct_divs" do
- let(:structure) { FactoryGirl.build(:multiple_struct_maps_structure) }
- let(:struct_divs) { structure.struct_divs }
+ 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_divs.keys).to match_array([ 'default', 'reverse' ])
- expect(struct_divs['default']).to be_a(Ddr::Models::StructDiv)
- expect(struct_divs['reverse']).to be_a(Ddr::Models::StructDiv)
+ 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
\ No newline at end of file