summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorsigurdsvela <sigurdbergsvela@gmail.com>2015-04-07 14:37:23 +0200
committersigurdsvela <sigurdbergsvela@gmail.com>2015-04-07 14:37:23 +0200
commit5c254f0406c1246c3e07ea781cc2dfded5a09a36 (patch)
tree9b7e827e07c7b137f843c2484dc1b7a77d58694f /test
parent3c572378fa8dd437bfb323c9cab39f95ed9a5341 (diff)
downloadslop-5c254f0406c1246c3e07ea781cc2dfded5a09a36.tar.gz
Rewrite MissingOption.getFlags() to flags
Removes the MissingOption.getFlags() function and replaces it with attr_reader :flags
Diffstat (limited to 'test')
-rw-r--r--test/error_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/error_test.rb b/test/error_test.rb
index 1bf1604..42c4b9d 100644
--- a/test/error_test.rb
+++ b/test/error_test.rb
@@ -12,7 +12,7 @@ describe Slop::MissingArgument do
begin
opts.parse %w(--name)
rescue Slop::MissingArgument => e
- assert_equal(e.getFlags(), ["-n", "--name"])
+ assert_equal(e.flags, ["-n", "--name"])
end
end