diff options
author | Lee Jarvis <lee@jarvis.co> | 2012-04-23 11:28:16 +0100 |
---|---|---|
committer | Lee Jarvis <lee@jarvis.co> | 2012-04-23 11:28:16 +0100 |
commit | 622e953bad4087311cf6760b49a0641b3323b573 (patch) | |
tree | 4b508fd921796a934960fb530440954c723ea28f /test | |
parent | 337ee6af5309cfcecfbace96d0d3c039c05d0698 (diff) | |
download | slop-622e953bad4087311cf6760b49a0641b3323b573.tar.gz |
ensure separators arent replacing existing separators
closes #61
Diffstat (limited to 'test')
-rw-r--r-- | test/slop_test.rb | 3 |
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 |