Skip to content

Commit 0b9f9e2

Browse files
author
Morgan Haskel
committed
Merge pull request redhat-openstack#101 from hunner/remove_stderr
Remove stderr checks because of deprecations
2 parents 6477d20 + 6fb89f5 commit 0b9f9e2

2 files changed

Lines changed: 27 additions & 27 deletions

File tree

spec/acceptance/ini_setting_spec.rb

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
shell("rm #{path}", :acceptable_exit_codes => [0,1,2])
1717
end
1818

19-
it 'applies the manifest twice with no stderr' do
20-
expect(apply_manifest(pp, :catch_failures => true).stderr).to eq("")
21-
expect(apply_manifest(pp, :catch_changes => true).stderr).to eq("")
19+
it 'applies the manifest twice' do
20+
apply_manifest(pp, :catch_failures => true)
21+
apply_manifest(pp, :catch_changes => true)
2222
end
2323

2424
describe file(path) do
@@ -67,9 +67,9 @@
6767
}
6868
EOS
6969

70-
it 'applies the manifest twice with no stderr' do
71-
expect(apply_manifest(pp, :catch_failures => true).stderr).to eq("")
72-
expect(apply_manifest(pp, :catch_changes => true).stderr).to eq("")
70+
it 'applies the manifest twice' do
71+
apply_manifest(pp, :catch_failures => true)
72+
apply_manifest(pp, :catch_changes => true)
7373
end
7474

7575
describe file("#{tmpdir}/ini_setting.ini") do
@@ -96,9 +96,9 @@
9696
}
9797
EOS
9898

99-
it 'applies the manifest twice with no stderr' do
100-
expect(apply_manifest(pp, :catch_failures => true).stderr).to eq("")
101-
expect(apply_manifest(pp, :catch_changes => true).stderr).to eq("")
99+
it 'applies the manifest twice' do
100+
apply_manifest(pp, :catch_failures => true)
101+
apply_manifest(pp, :catch_changes => true)
102102
end
103103

104104
describe file("#{tmpdir}/ini_setting.ini") do
@@ -126,9 +126,9 @@
126126
}
127127
EOS
128128

129-
it 'applies the manifest twice with no stderr' do
130-
expect(apply_manifest(pp, :catch_failures => true).stderr).to eq("")
131-
expect(apply_manifest(pp, :catch_changes => true).stderr).to eq("")
129+
it 'applies the manifest twice' do
130+
apply_manifest(pp, :catch_failures => true)
131+
apply_manifest(pp, :catch_changes => true)
132132
end
133133

134134
describe file("#{tmpdir}/ini_setting.ini") do
@@ -158,9 +158,9 @@
158158
}
159159
EOS
160160

161-
it 'applies the manifest twice with no stderr' do
162-
expect(apply_manifest(pp, :catch_failures => true).stderr).to eq("")
163-
expect(apply_manifest(pp, :catch_changes => true).stderr).to eq("")
161+
it 'applies the manifest twice' do
162+
apply_manifest(pp, :catch_failures => true)
163+
apply_manifest(pp, :catch_changes => true)
164164
end
165165

166166
describe file("#{tmpdir}/ini_setting.ini") do

spec/acceptance/ini_subsetting_spec.rb

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
shell("rm #{path}", :acceptable_exit_codes => [0,1,2])
1717
end
1818

19-
it 'applies the manifest twice with no stderr' do
20-
expect(apply_manifest(pp, :catch_failures => true).stderr).to eq("")
21-
expect(apply_manifest(pp, :catch_changes => true).stderr).to eq("")
19+
it 'applies the manifest twice' do
20+
apply_manifest(pp, :catch_failures => true)
21+
apply_manifest(pp, :catch_changes => true)
2222
end
2323

2424
describe file(path) do
@@ -66,9 +66,9 @@
6666
}
6767
EOS
6868

69-
it 'applies the manifest twice with no stderr' do
70-
expect(apply_manifest(pp, :catch_failures => true).stderr).to eq("")
71-
expect(apply_manifest(pp, :catch_changes => true).stderr).to eq("")
69+
it 'applies the manifest twice' do
70+
apply_manifest(pp, :catch_failures => true)
71+
apply_manifest(pp, :catch_changes => true)
7272
end
7373

7474
describe file("#{tmpdir}/ini_subsetting.ini") do
@@ -95,9 +95,9 @@
9595
}
9696
EOS
9797

98-
it 'applies the manifest twice with no stderr' do
99-
expect(apply_manifest(pp, :catch_failures => true).stderr).to eq("")
100-
expect(apply_manifest(pp, :catch_changes => true).stderr).to eq("")
98+
it 'applies the manifest twice' do
99+
apply_manifest(pp, :catch_failures => true)
100+
apply_manifest(pp, :catch_changes => true)
101101
end
102102

103103
describe file("#{tmpdir}/ini_subsetting.ini") do
@@ -176,9 +176,9 @@
176176
}
177177
EOS
178178

179-
it 'applies the manifest twice with no stderr' do
180-
expect(apply_manifest(pp, :catch_failures => true).stderr).to eq("")
181-
expect(apply_manifest(pp, :catch_changes => true).stderr).to eq("")
179+
it 'applies the manifest twice' do
180+
apply_manifest(pp, :catch_failures => true)
181+
apply_manifest(pp, :catch_changes => true)
182182
end
183183

184184
describe file("#{tmpdir}/ini_subsetting.ini") do

0 commit comments

Comments
 (0)