Skip to content

(maint) Address rubocop failures in unit tests #390

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

Merged
merged 1 commit into from
Apr 5, 2024
Merged
Show file tree
Hide file tree
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 @@ -124,7 +124,7 @@ class foo(Integer $param1, $param2, String $param3 = hi) inherits foo::bar {
SOURCE

it 'respects the type that was documented' do
expect { spec_subject }.to output('').to_stdout_from_any_process
expect { spec_subject }.not_to output.to_stdout_from_any_process
expect(spec_subject.size).to eq(1)
tags = spec_subject.first.tags(:param)
expect(tags.size).to eq(3)
Expand Down Expand Up @@ -168,7 +168,7 @@ class foo(Integer $param1, $param2, String $param3 = hi) inherits foo::bar {
SOURCE

it 'respects the type that was documented' do
expect { spec_subject }.to output('').to_stdout_from_any_process
expect { spec_subject }.not_to output.to_stdout_from_any_process
expect(spec_subject.size).to eq(1)
tags = spec_subject.first.tags(:param)
expect(tags.size).to eq(3)
Expand All @@ -189,7 +189,7 @@ class foo() {
SOURCE

it 'parses the summary' do
expect { spec_subject }.to output('').to_stdout_from_any_process
expect { spec_subject }.not_to output.to_stdout_from_any_process
expect(spec_subject.size).to eq(1)
summary = spec_subject.first.tags(:summary)
expect(summary.first.text).to eq('A short summary.')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
SOURCE

it 'parses the summary' do
expect { spec_subject }.to output('').to_stdout_from_any_process
expect { spec_subject }.not_to output.to_stdout_from_any_process
expect(spec_subject.size).to eq(1)
summary = spec_subject.first.tags(:summary)
expect(summary.first.text).to eq('A short summary.')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
SOURCE

it 'respects the type that was documented' do
expect { spec_subject }.to output('').to_stdout_from_any_process
expect { spec_subject }.not_to output.to_stdout_from_any_process
expect(spec_subject.size).to eq(1)
tags = spec_subject.first.tags(:param)
expect(tags.size).to eq(3)
Expand Down Expand Up @@ -174,7 +174,7 @@
SOURCE

it 'respects the type that was documented' do
expect { spec_subject }.to output('').to_stdout_from_any_process
expect { spec_subject }.not_to output.to_stdout_from_any_process
expect(spec_subject.size).to eq(1)
tags = spec_subject.first.tags(:param)
expect(tags.size).to eq(3)
Expand All @@ -198,7 +198,7 @@
SOURCE

it 'parses the summary' do
expect { spec_subject }.to output('').to_stdout_from_any_process
expect { spec_subject }.not_to output.to_stdout_from_any_process
expect(spec_subject.size).to eq(1)
summary = spec_subject.first.tags(:summary)
expect(summary.first.text).to eq('A short summary.')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
SOURCE

it 'respects the type that was documented' do
expect { spec_subject }.to output('').to_stdout_from_any_process
expect { spec_subject }.not_to output.to_stdout_from_any_process
expect(spec_subject.size).to eq(1)
tags = spec_subject.first.tags(:param)
expect(tags.size).to eq(3)
Expand Down Expand Up @@ -171,7 +171,7 @@
SOURCE

it 'respects the type that was documented' do
expect { spec_subject }.to output('').to_stdout_from_any_process
expect { spec_subject }.not_to output.to_stdout_from_any_process
expect(spec_subject.size).to eq(1)
tags = spec_subject.first.tags(:param)
expect(tags.size).to eq(3)
Expand Down Expand Up @@ -262,7 +262,7 @@
SOURCE

it 'gets the return type from the function definition' do
expect { spec_subject }.to output('').to_stdout_from_any_process
expect { spec_subject }.not_to output.to_stdout_from_any_process
expect(spec_subject.size).to eq(1)
object = spec_subject.first
expect(object).to be_a(PuppetStrings::Yard::CodeObjects::Function)
Expand Down Expand Up @@ -307,7 +307,7 @@
SOURCE

it 'parses the summary' do
expect { spec_subject }.to output('').to_stdout_from_any_process
expect { spec_subject }.not_to output.to_stdout_from_any_process
expect(spec_subject.size).to eq(1)
summary = spec_subject.first.tags(:summary)
expect(summary.first.text).to eq('A short summary.')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ def suppress_yard_logging
SOURCE

it 'parses the summary' do
expect { spec_subject }.to output('').to_stdout_from_any_process
expect { spec_subject }.not_to output.to_stdout_from_any_process
expect(spec_subject.size).to eq(1)
summary = spec_subject.first.tags(:summary)
expect(summary.first.text).to eq('A short summary.')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ def other(b)
SOURCE

it 'parses the summary' do
expect { spec_subject }.to output('').to_stdout_from_any_process
expect { spec_subject }.not_to output.to_stdout_from_any_process
expect(spec_subject.size).to eq(1)
summary = spec_subject.first.tags(:summary)
expect(summary.first.text).to eq('A short summary.')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
SOURCE

it 'parses the summary' do
expect { spec_subject }.to output('').to_stdout_from_any_process
expect { spec_subject }.not_to output.to_stdout_from_any_process
expect(spec_subject.size).to eq(1)
summary = spec_subject.first.tags(:summary)
expect(summary.first.text).to eq('A short summary.')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
SOURCE

it 'parses the summary' do
expect { spec_subject }.to output('').to_stdout_from_any_process
expect { spec_subject }.not_to output.to_stdout_from_any_process
expect(spec_subject.size).to eq(1)
summary = spec_subject.first.tags(:summary)
expect(summary.first.text).to eq('A short summary.')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@
SOURCE

it 'parses the summary' do
expect { spec_subject }.to output('').to_stdout_from_any_process
expect { spec_subject }.not_to output.to_stdout_from_any_process
expect(spec_subject.size).to eq(1)
summary = spec_subject.first.tags(:summary)
expect(summary.first.text).to eq('A short summary.')
Expand Down