Fix typo in tests
* test/ruby/test_proc.rb: s/overriden/overridden/ * test/ruby/test_refinement.rb: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44293 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4ece8eea11
commit
41c42afdda
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user