Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

update readme, to make usage clear

  • Loading branch information...
commit ae55685c0f5eecdaff04a313409761630d8fa917 1 parent 0410f37
@grosser authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 README.markdown
View
6 README.markdown
@@ -36,7 +36,11 @@ Fill `test/valid_attributes.yml` or `spec/valid_attributes.yml` with 1 valid set
USAGE
=====
- - `assert_invalid_attributes(User, :email => [nil, 's', '@', 'asd@sdf'], :name => [nil, 'x', 'admin'])`
+ def test_validations
+ assert true, valid(User).valid?
+ assert_invalid_attributes(User, :email => [nil, 's', '@', 'asd@sdf'], :name => [nil, 'x', 'admin'])`
+ end
+
- set of valid attributes: `valid_attributes User`
- a valid Record(new): `valid User`
- a valid Record(saved): `create_valid User`
Please sign in to comment.
Something went wrong with that request. Please try again.