Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
grosser committed Dec 14, 2008
1 parent 95d10b4 commit 540ba28
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions README.markdown
@@ -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
Expand Down

0 comments on commit 540ba28

Please sign in to comment.