mirror of
https://github.com/thoughtbot/shoulda-matchers.git
synced 2022-11-09 12:01:38 -05:00
Fixed some references to deprecated methods in the README
This commit is contained in:
parent
34a2ee6160
commit
54f1fc0170
1 changed files with 3 additions and 3 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue