Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed some references to deprecated methods in the README

  • Loading branch information...
commit 54f1fc0170394b79d7bbee9a320630dffc9845b5 1 parent 34a2ee6
@jferris jferris authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 README.rdoc
View
6 README.rdoc
@@ -54,10 +54,10 @@ Quick macro tests for your ActiveRecord associations and validations:
should_belong_to :user
should_have_many :tags, :through => :taggings
- should_require_unique_attributes :title
+ should_validate_uniqueness_of :title
should_validate_presence_of :body, :message => /wtf/
should_validate_presence_of :title
- should_only_allow_numeric_values_for :user_id
+ should_validate_numericality_of :user_id
end
class UserTest < Test::Unit::TestCase
@@ -67,7 +67,7 @@ Quick macro tests for your ActiveRecord associations and validations:
should_allow_values_for :email, "a@b.com", "asdf@asdf.com"
should_ensure_length_in_range :email, 1..100
should_ensure_value_in_range :age, 1..100
- should_protect_attributes :password
+ should_not_allow_mass_assignment_of :password
end
Makes TDD so much easier.
Please sign in to comment.
Something went wrong with that request. Please try again.