summaryrefslogtreecommitdiff
path: root/test/result_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Fix deprecation warning in testsLee Jarvis2019-01-211-1/+1
|
* add Slop::Result#fetchGiovanni Benussi2018-06-271-0/+25
| | | | | | | | | | | | | | | | | | | | | | use Slop::Result#clean_key in Slop::Result#option fix typo in Slop::Result#[] and Slop::Result#fetch descriptions handle case when Slop::Result#fetch tries to fetch an option that is not provided and does not have a default value raise Slop::UnknownOption when Slop::Result#fetch tries to fetch an unexisting key set Slop::Result#clean_key method as private remove redundant Slop::Result#fetch tests update description of Slop::Result#fetch test when trying to access an unexisting option update error message when an option is not present on Slop::Result#fetch description of Slop::Result#fetch update expected error message on test for Slop::Result#fetch when an option is not present
* Fix ridiculous minitest warningLee Jarvis2017-04-291-1/+1
| | | | wat?
* #163 only raise MissingArgument if not default_valueBen Brady2015-06-301-0/+3
|
* Better handling of option names with multiple wordsTim Rogers2015-06-131-6/+14
|
* Add explicit value setter to Result classLee Jarvis2015-02-041-0/+14
| | | | closes #162
* Reset parser every time parse is calledLee Jarvis2014-12-301-4/+4
|
* Yield option arguments to option blocksLee Jarvis2014-11-191-0/+7
|
* Support method_missing checks for used optionsLee Jarvis2014-11-191-0/+7
|
* Add custom "finish" method for optionsLee Jarvis2014-11-191-0/+17
|
* Handle default valuesLee Jarvis2014-11-191-0/+6
|
* Store executed count on optionsLee Jarvis2014-11-191-0/+7
|
* Add public "get" methods to ResultLee Jarvis2014-11-191-4/+27
| | | | With a light sprinkle of documentation
* Add Result#to_hashLee Jarvis2014-11-191-0/+18