diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_proc.rb | 4 | ||||
-rw-r--r-- | test/ruby/test_refinement.rb | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/test/ruby/test_proc.rb b/test/ruby/test_proc.rb index aca1903df8..b40485f582 100644 --- a/test/ruby/test_proc.rb +++ b/test/ruby/test_proc.rb @@ -1198,12 +1198,12 @@ class TestProc < Test::Unit::TestCase } end - def test_overriden_lambda + def test_overridden_lambda bug8345 = '[ruby-core:54687] [Bug #8345]' assert_normal_exit('def lambda; end; method(:puts).to_proc', bug8345) end - def test_overriden_proc + def test_overridden_proc bug8345 = '[ruby-core:54688] [Bug #8345]' assert_normal_exit('def proc; end; ->{}.curry', bug8345) end diff --git a/test/ruby/test_refinement.rb b/test/ruby/test_refinement.rb index 98dae15f00..07a325c1b8 100644 --- a/test/ruby/test_refinement.rb +++ b/test/ruby/test_refinement.rb @@ -246,13 +246,13 @@ class TestRefinement < Test::Unit::TestCase module FixnumPlusExt refine Fixnum do def self.method_added(*args); end - def +(other) "overriden" end + def +(other) "overridden" end end end def test_override_builtin_method_with_method_added assert_equal(3, 1 + 2) - assert_equal("overriden", eval_using(FixnumPlusExt, "1 + 2")) + assert_equal("overridden", eval_using(FixnumPlusExt, "1 + 2")) assert_equal(3, 1 + 2) end |