Skip to content

Commit

Permalink
Add test covering on_potential_false_positives failure mode
Browse files Browse the repository at this point in the history
  • Loading branch information
nevinera committed May 8, 2024
1 parent 4193cbf commit d99adb5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/rspec/expectations/configuration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,12 @@ def delegated?; true; end
config.on_potential_false_positives = :raise
expect(config.on_potential_false_positives).to eq :raise
end

it 'cannot be set to :fooba' do
expect {
config.on_potential_false_positives = :fooba
}.to raise_error(ArgumentError, /Supported values are/)
end
end

shared_examples "configuring the expectation syntax" do
Expand Down

0 comments on commit d99adb5

Please sign in to comment.