Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

update readme, to make usage clear

  • Loading branch information...
commit ae55685c0f5eecdaff04a313409761630d8fa917 1 parent 0410f37
Michael Grosser authored

Showing 1 changed file with 5 additions and 1 deletion. Show diff stats Hide diff stats

  1. +5 1 README.markdown
6 README.markdown
Source Rendered
@@ -36,7 +36,11 @@ Fill `test/valid_attributes.yml` or `spec/valid_attributes.yml` with 1 valid set
36 36
37 37 USAGE
38 38 =====
39   - - `assert_invalid_attributes(User, :email => [nil, 's', '@', 'asd@sdf'], :name => [nil, 'x', 'admin'])`
  39 + def test_validations
  40 + assert true, valid(User).valid?
  41 + assert_invalid_attributes(User, :email => [nil, 's', '@', 'asd@sdf'], :name => [nil, 'x', 'admin'])`
  42 + end
  43 +
40 44 - set of valid attributes: `valid_attributes User`
41 45 - a valid Record(new): `valid User`
42 46 - a valid Record(saved): `create_valid User`

0 comments on commit ae55685

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