Skip to content

Commit

Permalink
Add a testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
chutzimir committed Apr 25, 2023
1 parent 14b3a77 commit df127fe
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,15 @@
expect(problems).to have(1).problem
end
end

context 'top scoped fact variable using unquoted legacy facts hash variable in interpolation' do
let(:code) { "$::facts[osfamily]" }

it 'detects a single problem' do
expect(problems).to have(0).problem
end
end

end

context 'with fix enabled' do
Expand Down

0 comments on commit df127fe

Please sign in to comment.