Skip to content

Commit

Permalink
test: test help message
Browse files Browse the repository at this point in the history
  • Loading branch information
markokajzer committed Feb 9, 2024
1 parent 73d6a94 commit 4707830
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/argument_parser_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
expect(options[:log_level]).to eq(:debug)
end

# When this test is enabled, rspec randomly skips other specs...
xit "shows the help message" do
it "shows the help message" do
expect { described_class.parse!(args: ["--help"]) }
.to output("Show this message").to_stdout
.to raise_error(SystemExit)
.and output(/Show this message/).to_stdout
end
end

0 comments on commit 4707830

Please sign in to comment.