Skip to content

Commit

Permalink
OpionGroups::Scope: Updated auto-redundant specs
Browse files Browse the repository at this point in the history
  • Loading branch information
Zapotek committed Dec 20, 2021
1 parent 96de864 commit f03beeb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/arachni/option_groups/scope.rb
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def exclude_file_extensions=( ext )
end

def auto_redundant?
!!@auto_redundant_paths
@auto_redundant_paths.to_i > 0
end

def auto_redundant_counter
Expand Down
7 changes: 1 addition & 6 deletions spec/arachni/option_groups/scope_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,7 @@
end
describe 'when #auto_redundant_paths has been disabled' do
it 'returns false' do
subject.auto_redundant_paths = nil
expect(subject.auto_redundant?).to be_falsey
end
end
describe 'by default' do
it 'returns false' do
subject.auto_redundant_paths = 0
expect(subject.auto_redundant?).to be_falsey
end
end
Expand Down

0 comments on commit f03beeb

Please sign in to comment.