From 5c254f0406c1246c3e07ea781cc2dfded5a09a36 Mon Sep 17 00:00:00 2001 From: sigurdsvela Date: Tue, 7 Apr 2015 14:37:23 +0200 Subject: Rewrite MissingOption.getFlags() to flags Removes the MissingOption.getFlags() function and replaces it with attr_reader :flags --- test/error_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') 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 -- cgit v1.2.1