Skip to content

Commit 0c666b4

Browse files
committed
Added a argv variable to match other option parsing specs.
1 parent 88f4688 commit 0c666b4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spec/cli/pattern_options_spec.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -509,8 +509,9 @@ class TestCommand < Ronin::CLI::Command
509509
shared_examples_for "pattern option" do |flag,constant|
510510
describe "when given '#{flag}'" do
511511
let(:flag) { flag }
512+
let(:argv) { [flag] }
512513

513-
before { subject.option_parser.parse([flag]) }
514+
before { subject.option_parser.parse(argv) }
514515

515516
it "must set #pattern to Ronin::Support::Text::Patterns::#{constant}" do
516517
expect(subject.pattern).to be(

0 commit comments

Comments
 (0)