Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

docs

  • Loading branch information...
commit 95d10b45be6dbccdab9318910eabe64b7523ddf8 1 parent 4ecc9ca
Michael Grosser authored

Showing 1 changed file with 9 additions and 6 deletions. Show diff stats Hide diff stats

  1. +9 6 README.markdown
15 README.markdown
Source Rendered
... ... @@ -1,5 +1,6 @@
1 1 GOALS
2 2 =====
  3 + - simple and robust validation testing
3 4 - create single valid record
4 5 - edge-case records without fixtures
5 6 - valid attributes to test a post or fill a form
@@ -14,16 +15,18 @@ Example:
14 15 name: Hans
15 16 login: hand
16 17 address_id: 1
17   -
  18 + #can be attr_protected/not attr_accessible
  19 +
18 20
19 21 USAGE
20 22 =====
21   - - set of valid attributes: valid_attributes User
22   - - a valid Record(new): valid User
23   - - a valid saved Record: create_valid User
24   - - an edge-case User: valid User, :name=>'oh noo it is too long'
  23 + - `assert_invalid_attributes(User,:email=>[nil,'s','@','asd@sdf'],:name=>[nil,'x','admin'])`
  24 + - set of valid attributes: `valid_attributes User`
  25 + - a valid Record(new): `valid User`
  26 + - a valid saved Record: `create_valid User`
  27 + - an edge-case User: `valid User, :name=>'oh noo it is too long'`
25 28
26 29
27 30 CONTRIBUTORS
28 31 ============
29   -[assert_invalid](http://www.railsforum.com/viewtopic.php?id=741)
  32 +[`assert_invalid`](http://www.railsforum.com/viewtopic.php?id=741)

0 comments on commit 95d10b4

Please sign in to comment.
Something went wrong with that request. Please try again.