Permalink
Browse files

spec setup

  • Loading branch information...
rubiii committed Nov 15, 2009
1 parent 94caed5 commit dff497ff9e65b4af877b56e2dc4fef41d984287c
Showing with 19 additions and 0 deletions.
  1. +7 −0 spec/validatable_association.rb
  2. +12 −0 spec/validatable_class.rb
@@ -0,0 +1,7 @@
+class ValidatableAssociation
+ include Validatable
+ include ValidatableAssociations::MassAssignment
+
+ attr_accessor :id, :status
+
+end
View
@@ -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

0 comments on commit dff497f

Please sign in to comment.