lib/rspec/models/unidom/geo/location_spec.rb in unidom-geo-1.5.1 vs lib/rspec/models/unidom/geo/location_spec.rb in unidom-geo-1.5.2
- old
+ new
@@ -202,8 +202,13 @@
{ postal_code: 'AAA' } => 0,
{ postal_code: 'A'*(postal_code_max_length-1) } => 0,
{ postal_code: 'A'*postal_code_max_length } => 0,
{ postal_code: 'A'*(postal_code_max_length+1) } => 1
+ it_behaves_like 'scope', :postal_address_is, [
+ { attributes_collection: [ model_attributes ], count_diff: 1, args: [ 'Somewhere' ] },
+ { attributes_collection: [ model_attributes ], count_diff: 0, args: [ 'Somewhere1' ] },
+ { attributes_collection: [ model_attributes ], count_diff: 0, args: [ 'somewhere' ] } ]
+
end
end