Permalink
Browse files

docs

  • Loading branch information...
1 parent 95d10b4 commit 540ba28460d61a2ab872a91ebc9ff4844f5ce299 @grosser committed Dec 14, 2008
Showing with 14 additions and 7 deletions.
  1. +14 −7 README.markdown
View
@@ -1,21 +1,28 @@
-GOALS
-=====
- - simple and robust validation testing
- - create single valid record
- - edge-case records without fixtures
- - valid attributes to test a post or fill a form
+PROBLEM
+=======
+ - fixtures are not maintainable
+ - validation change, code breaks
+ - forms need to be filled with valid attributes
+
+
+SOLUTION
+========
+ - simple and robust validation testing `User.email expected to be invalid when set to <xx@yy>`
+ - create a valid record without fixtures
+ - create edge-case records without fixtures
+ - use valid attributes to test a post or fill a form
INSTALL
=======
Fill the test/fixtures/valid/valid.yml with 1 valid set of attributes per model
+(can be attr_protected/not attr_accessible)
Example:
user:
name: Hans
login: hand
address_id: 1
- #can be attr_protected/not attr_accessible
USAGE

0 comments on commit 540ba28

Please sign in to comment.