inspec/test/unit/mock/profiles/wrong-char-profile/controls/control.rb
Christoph Hartmann 0e0b808e9b enforce utf encoding for cli output (#3376)
* enforce utf encoding for cli output
* add profile with wrong character set

Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
2018-09-10 14:37:43 -04:00

7 lines
No EOL
254 B
Ruby

control 'char' do
title "ensure we have the right characterset"
desc "Ensure we do not freak out with “"
describe inspec.profile.file('ascii').force_encoding(Encoding::ISO_8859_1) do
it { should_not match(/conceptually/) }
end
end