summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/options_test.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/options_test.rb b/test/options_test.rb
index 5b12f7b..65461db 100644
--- a/test/options_test.rb
+++ b/test/options_test.rb
@@ -75,5 +75,11 @@ describe Slop::Options do
@options.on "-x", "something", help: false
refute_match(/something/, @options.to_s)
end
+
+ it "adds 'tail' options to the bottom of the help text" do
+ @options.on "-h", "--help", tail: true
+ @options.on "-f", "--foo"
+ assert_match(/^ -h, --help/, @options.to_s.lines.last)
+ end
end
end