Skip to content

Commit

Permalink
Fix typo in tests
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
amatsuda committed Dec 20, 2013
1 parent 4ece8ee commit 41c42af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/ruby/test_proc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1198,12 +1198,12 @@ def foo
}
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
Expand Down
4 changes: 2 additions & 2 deletions test/ruby/test_refinement.rb
Original file line number Diff line number Diff line change
Expand Up @@ -246,13 +246,13 @@ def test_override_builtin_method
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

Expand Down

0 comments on commit 41c42af

Please sign in to comment.