spec/lib/shamu/attributes/validation_spec.rb in shamu-0.0.13 vs spec/lib/shamu/attributes/validation_spec.rb in shamu-0.0.14

- old
+ new

@@ -48,6 +48,14 @@ instance = klass.new( {} ) expect( instance ).to receive( :validate ).once.and_call_original instance.valid? instance.valid? end -end \ No newline at end of file + + it "supports shamu validators with simple hash names" do + nested = Class.new( klass ) do + attribute :nested, valid: true + end + + expect( nested.validators ).to include Shamu::Attributes::Validators::ValidValidator + end +end