Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve spelling for some tests #909

Merged
merged 1 commit into from
Feb 8, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,15 @@ class puppet::master::maintenance (
end
end

context 'double quoted stings containing supported escape patterns' do
context 'double quoted strings containing supported escape patterns' do
let(:code) do
<<-END
$string1 = "this string contins \n newline"
$string2 = "this string contains \ttab"
$string1 = "this string contains \n newline"
$string2 = "this string contains \t tab"
$string3 = "this string contains \${escaped} var"
$string4 = "this string contains \\"escaped \\" double quotes"
$string5 = "this string contains \\'escaped \\' single quotes"
$string6 = "this string contains \r line return"
$string6 = "this string contains \r carriage return"
$string7 = "this string contains \\\\ an escaped backslash"
END
end
Expand All @@ -112,7 +112,7 @@ class puppet::master::maintenance (
end

context 'double quoted string with random escape should be rejected' do
let(:code) { %( $ztring = "this string contains \l random esape" ) }
let(:code) { %( $ztring = "this string contains \l random escape" ) }

it 'should only detect a single problem' do
expect(problems).to have(1).problem
Expand Down