lib/rspec/models/unidom/sequence/sequence_spec.rb in unidom-sequence-0.3 vs lib/rspec/models/unidom/sequence/sequence_spec.rb in unidom-sequence-0.3.1
- old
+ new
@@ -13,8 +13,16 @@
prefix: '110116'
}
it_behaves_like 'Unidom::Common::Concerns::ModelExtension', model_attributes
+ it_behaves_like 'scope', :prefix_is, [
+ { attributes_collection: [ model_attributes ], count_diff: 0, args: [ '110115' ] },
+ { attributes_collection: [ model_attributes ], count_diff: 0, args: [ 110115 ] },
+ { attributes_collection: [ model_attributes ], count_diff: 1, args: [ '110116' ] },
+ { attributes_collection: [ model_attributes ], count_diff: 1, args: [ 110116 ] },
+ { attributes_collection: [ model_attributes ], count_diff: 0, args: [ '110117' ] },
+ { attributes_collection: [ model_attributes ], count_diff: 0, args: [ 110117 ] } ]
+
end
end