Skip to content

Commit

Permalink
Merge pull request #390 from puppetlabs/address_rubocop
Browse files Browse the repository at this point in the history
(maint) Address rubocop failures in unit tests
  • Loading branch information
jordanbreen28 authored Apr 5, 2024
2 parents 1db2678 + c1ae856 commit 15d201d
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 16 deletions.
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

0 comments on commit 15d201d

Please sign in to comment.