diff options
author | Lee Jarvis <ljjarvis@gmail.com> | 2013-01-06 21:46:28 +0000 |
---|---|---|
committer | Lee Jarvis <ljjarvis@gmail.com> | 2013-01-06 21:46:28 +0000 |
commit | d5a43ffa81fb8a0e0a7c582f737fad00f88ac8e2 (patch) | |
tree | af25eb82a9d3bde3d2d9ebe09e531851f344e609 /test | |
parent | 301677e4ccc335c9b5eaaf14dc99e9c3baf3c483 (diff) | |
download | slop-d5a43ffa81fb8a0e0a7c582f737fad00f88ac8e2.tar.gz |
clean up unused variables in runner test
Diffstat (limited to 'test')
-rw-r--r-- | test/slop_test.rb | 7 |
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 |