aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/test/cases/validations_test.rb
diff options
context:
space:
mode:
authorVipul A M <vipulnsward@gmail.com>2013-03-15 11:55:03 +0530
committerVipul A M <vipulnsward@gmail.com>2013-03-15 11:55:03 +0530
commit29dcf096b01d0720136716dc08736e6fef331fa2 (patch)
treed2b15f6750d205337fcdc2fed14053d62bc417c8 /activemodel/test/cases/validations_test.rb
parent36f7732e820ce4d3c4a46bd0a1b15fd8902467b3 (diff)
downloadrails-29dcf096b01d0720136716dc08736e6fef331fa2.tar.gz
rails-29dcf096b01d0720136716dc08736e6fef331fa2.tar.bz2
rails-29dcf096b01d0720136716dc08736e6fef331fa2.zip
Small typos here and there.
Diffstat (limited to 'activemodel/test/cases/validations_test.rb')
-rw-r--r--activemodel/test/cases/validations_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activemodel/test/cases/validations_test.rb b/activemodel/test/cases/validations_test.rb
index a9d32808da..d3723fa45b 100644
--- a/activemodel/test/cases/validations_test.rb
+++ b/activemodel/test/cases/validations_test.rb
@@ -213,7 +213,7 @@ class ValidationsTest < ActiveModel::TestCase
assert_equal 'is too short (minimum is 2 characters)', t.errors[key][0]
end
- def test_validaton_with_if_and_on
+ def test_validation_with_if_and_on
Topic.validates_presence_of :title, :if => Proc.new{|x| x.author_name = "bad"; true }, :on => :update
t = Topic.new(:title => "")
@@ -361,7 +361,7 @@ class ValidationsTest < ActiveModel::TestCase
def test_dup_validity_is_independent
Topic.validates_presence_of :title
- topic = Topic.new("title" => "Litterature")
+ topic = Topic.new("title" => "Literature")
topic.valid?
duped = topic.dup