Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

spec setup

  • Loading branch information...
commit dff497ff9e65b4af877b56e2dc4fef41d984287c 1 parent 94caed5
dh authored
Showing with 19 additions and 0 deletions.
  1. +7 −0 spec/validatable_association.rb
  2. +12 −0 spec/validatable_class.rb
View
7 spec/validatable_association.rb
@@ -0,0 +1,7 @@
+class ValidatableAssociation
+ include Validatable
+ include ValidatableAssociations::MassAssignment
+
+ attr_accessor :id, :status
+
+end
View
12 spec/validatable_class.rb
@@ -0,0 +1,12 @@
+class ValidatableClass
+ include Validatable
+ include ValidatableAssociations
+
+ attr_accessor :id, :name
+ attr_reader :desc
+
+ def desc=(desc)
+ @desc = desc.upcase
+ end
+
+end
Please sign in to comment.
Something went wrong with that request. Please try again.