summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/slop_test.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/test/slop_test.rb b/test/slop_test.rb
index 42433b1..9e2d91a 100644
--- a/test/slop_test.rb
+++ b/test/slop_test.rb
@@ -435,13 +435,10 @@ class SlopTest < TestCase
orun = proc { |r| assert_instance_of Slop, r }
arun = proc { |r| assert_equal ['foo', 'bar'], r }
- opts = Slop.parse(%w'foo --foo bar -v bar') do
+ Slop.parse(%w'foo --foo bar -v bar') do
on :v
on :foo=
- run do |opts, argv|
- orun[opts]
- arun[argv]
- end
+ run { |o, a| orun[o]; arun[a] }
end
end