From 0c666b472bb836e44cc26bb7f16cbacaab33dbf2 Mon Sep 17 00:00:00 2001 From: Postmodern Date: Sat, 14 Dec 2024 19:34:36 -0800 Subject: [PATCH] Added a `argv` variable to match other option parsing specs. --- spec/cli/pattern_options_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/cli/pattern_options_spec.rb b/spec/cli/pattern_options_spec.rb index 35d37dd62..39b8c83dc 100644 --- a/spec/cli/pattern_options_spec.rb +++ b/spec/cli/pattern_options_spec.rb @@ -509,8 +509,9 @@ class TestCommand < Ronin::CLI::Command shared_examples_for "pattern option" do |flag,constant| describe "when given '#{flag}'" do let(:flag) { flag } + let(:argv) { [flag] } - before { subject.option_parser.parse([flag]) } + before { subject.option_parser.parse(argv) } it "must set #pattern to Ronin::Support::Text::Patterns::#{constant}" do expect(subject.pattern).to be(