Skip to content

Commit

Permalink
Add show ignored flag test to options tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gazayas committed Aug 5, 2024
1 parent e1d32ce commit c8c96d5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/tests/options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class BrakemanOptionsTest < Minitest::Test
:absolute_paths => "--absolute-paths",
:list_checks => "-k",
:list_optional_checks => "--optional-checks",
:show_ignored => "--show-ignored",
:show_version => "-v",
:show_help => "-h",
:force_scan => "--force-scan",
Expand Down Expand Up @@ -252,6 +253,11 @@ def test_ignore_file_option
assert_equal "dont_warn_for_these.rb", options[:ignore_file]
end

def test_show_ignored_option
options = setup_options_from_input("--show-ignored")
assert options[:show_ignored]
end

def test_combine_warnings_option
options = setup_options_from_input("--combine-locations")
assert options[:combine_locations]
Expand Down

0 comments on commit c8c96d5

Please sign in to comment.