Skip to content

Commit

Permalink
Scope unhelpful value test to *.device params
Browse files Browse the repository at this point in the history
  • Loading branch information
mkienow-r7 committed Jan 9, 2023
1 parent 8c9ff5a commit e49b028
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/lib/fingerprint_self_test_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@
end
end

it "has parameter values other than General, Server or Unknown, which are not helpful" do
if pos == 0 && value =~ /^(?i:general|server|unknown)$/
fail "'#{param_name}' has general/server/unknown value '#{value}'"
it "has *.device parameter values other than General, Server or Unknown, which are not helpful" do
if pos == 0 && param_name =~ /^(?:[^\.]+\.device*)$/ && value =~ /^(?i:general|server|unknown)$/
fail "'#{param_name}' has unhelpful value '#{value}'"
end
end

Expand Down

0 comments on commit e49b028

Please sign in to comment.