summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorLee Jarvis <ljjarvis@gmail.com>2014-12-19 16:08:04 +0000
committerLee Jarvis <ljjarvis@gmail.com>2014-12-19 16:17:19 +0000
commit7cee65ee47c365799bfe0f03217036c1dc0787b2 (patch)
tree7009bb91911333393d24c4dc42838a0ca6061069 /test
parent6c509658f8052f1ef9dba8ed5db2207e6375665e (diff)
downloadslop-7cee65ee47c365799bfe0f03217036c1dc0787b2.tar.gz
Add result/parser `arguments` method
Diffstat (limited to 'test')
-rw-r--r--test/parser_test.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/parser_test.rb b/test/parser_test.rb
index 8fa85f2..fe3b714 100644
--- a/test/parser_test.rb
+++ b/test/parser_test.rb
@@ -56,4 +56,10 @@ describe Slop::Parser do
assert_equal [@unused], @parser.unused_options
end
end
+
+ describe "#arguments" do
+ it "returns all unparsed arguments" do
+ assert_equal %w(foo argument), @parser.arguments
+ end
+ end
end