summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorLee Jarvis <lee@jarvis.co>2012-04-23 11:28:16 +0100
committerLee Jarvis <lee@jarvis.co>2012-04-23 11:28:16 +0100
commit622e953bad4087311cf6760b49a0641b3323b573 (patch)
tree4b508fd921796a934960fb530440954c723ea28f /test
parent337ee6af5309cfcecfbace96d0d3c039c05d0698 (diff)
downloadslop-622e953bad4087311cf6760b49a0641b3323b573.tar.gz
ensure separators arent replacing existing separators
closes #61
Diffstat (limited to 'test')
-rw-r--r--test/slop_test.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/slop_test.rb b/test/slop_test.rb
index bd00444..4195528 100644
--- a/test/slop_test.rb
+++ b/test/slop_test.rb
@@ -291,9 +291,10 @@ class SlopTest < TestCase
opts = Slop.new do
on :foo
separator "hello"
+ separator "world"
on :bar
end
- assert_equal " --foo \nhello\n --bar ", opts.help
+ assert_equal " --foo \nhello\nworld\n --bar ", opts.help
end
test "printing help with :help => true" do