Skip to content
This repository
Browse code

fix some typos found in activemodel

  • Loading branch information...
commit 233737706cfe1a9b0d50140ca5c814a070b4b1be 1 parent c4a7c31
Vipul A M authored March 18, 2013
2  activemodel/test/cases/callbacks_test.rb
@@ -107,7 +107,7 @@ class Violin2 < Violin
107 107
   test "after_create callbacks with both callbacks declared in one line" do
108 108
     assert_equal ["callback1", "callback2"], Violin1.new.create.history
109 109
   end
110  
-  test "after_create callbacks with both callbacks declared in differnt lines" do
  110
+  test "after_create callbacks with both callbacks declared in different lines" do
111 111
     assert_equal ["callback1", "callback2"], Violin2.new.create.history
112 112
   end
113 113
 
2  activemodel/test/cases/validations/with_validation_test.rb
@@ -50,7 +50,7 @@ def check_validity!
50 50
     end
51 51
   end
52 52
 
53  
-  test "vaidation with class that adds errors" do
  53
+  test "validation with class that adds errors" do
54 54
     Topic.validates_with(ValidatorThatAddsErrors)
55 55
     topic = Topic.new
56 56
     assert topic.invalid?, "A class that adds errors causes the record to be invalid"
4  activemodel/test/cases/validations_test.rb
@@ -26,11 +26,11 @@ def teardown
26 26
   def test_single_field_validation
27 27
     r = Reply.new
28 28
     r.title = "There's no content!"
29  
-    assert r.invalid?, "A reply without content shouldn't be saveable"
  29
+    assert r.invalid?, "A reply without content shouldn't be savable"
30 30
     assert r.after_validation_performed, "after_validation callback should be called"
31 31
 
32 32
     r.content = "Messa content!"
33  
-    assert r.valid?, "A reply with content should be saveable"
  33
+    assert r.valid?, "A reply with content should be savable"
34 34
     assert r.after_validation_performed, "after_validation callback should be called"
35 35
   end
36 36
 

0 notes on commit 2337377

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