Skip to content

Commit

Permalink
Added a argv variable to match other option parsing specs.
Browse files Browse the repository at this point in the history
  • Loading branch information
postmodern committed Dec 15, 2024
1 parent 88f4688 commit 0c666b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/cli/pattern_options_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 0c666b4

Please sign in to comment.