1
0
Fork 0
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:
suke 2005-08-20 12:04:02 +00:00
parent 004ae5d39c
commit 3dec8be265

View file

@ -26,15 +26,13 @@ class TestInvokeVerb < Test::Unit::TestCase
# Yes, I know the string in the Windows 2000 Japanese Edition.
# But I do not know about the string in any other Windows.
#
@fi2.verbs.each do |v|
#
# We expect the 'Create Shortcut' string is end with '(&S)'.
#
if /.*\(\&S\)$/ =~ v.name
@shortcut = v.name
break
end
end
verbs = @fi2.verbs
verbs.extend(Enumerable)
@shortcut = verbs.collect{|verb|
verb.name
}.find {|name|
/.*\(\&S\)$/ =~ name
}
end
def test_invokeverb