mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
refactoring
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9009 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
004ae5d39c
commit
3dec8be265
1 changed files with 7 additions and 9 deletions
|
@ -26,15 +26,13 @@ class TestInvokeVerb < Test::Unit::TestCase
|
||||||
# Yes, I know the string in the Windows 2000 Japanese Edition.
|
# Yes, I know the string in the Windows 2000 Japanese Edition.
|
||||||
# But I do not know about the string in any other Windows.
|
# But I do not know about the string in any other Windows.
|
||||||
#
|
#
|
||||||
@fi2.verbs.each do |v|
|
verbs = @fi2.verbs
|
||||||
#
|
verbs.extend(Enumerable)
|
||||||
# We expect the 'Create Shortcut' string is end with '(&S)'.
|
@shortcut = verbs.collect{|verb|
|
||||||
#
|
verb.name
|
||||||
if /.*\(\&S\)$/ =~ v.name
|
}.find {|name|
|
||||||
@shortcut = v.name
|
/.*\(\&S\)$/ =~ name
|
||||||
break
|
}
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_invokeverb
|
def test_invokeverb
|
||||||
|
|
Loading…
Reference in a new issue