Skip to content

Commit a21dd81

Browse files
committed
Removed pending unit tests.
This functionality does not exist and thus was cluttering the output.
1 parent 6d43adb commit a21dd81

1 file changed

Lines changed: 0 additions & 34 deletions

File tree

spec/acceptance/ini_setting_spec.rb

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -113,40 +113,6 @@
113113
end
114114
end
115115

116-
context '=> absent for section', :pending => "cannot ensure absent on a section" do
117-
before :all do
118-
if fact('osfamily') == 'Darwin'
119-
shell("echo \"four = five\n[one]\ntwo = three\" > #{tmpdir}/ini_setting.ini")
120-
else
121-
shell("echo -e \"four = five\n[one]\ntwo = three\" > #{tmpdir}/ini_setting.ini")
122-
end
123-
end
124-
after :all do
125-
shell("cat #{tmpdir}/ini_setting.ini", :acceptable_exit_codes => [0,1,2])
126-
shell("rm #{tmpdir}/ini_setting.ini", :acceptable_exit_codes => [0,1,2])
127-
end
128-
129-
pp = <<-EOS
130-
ini_setting { 'ensure => absent for section':
131-
ensure => absent,
132-
path => "#{tmpdir}/ini_setting.ini",
133-
section => 'one',
134-
}
135-
EOS
136-
137-
it 'applies the manifest twice' do
138-
apply_manifest(pp, :catch_failures => true)
139-
apply_manifest(pp, :catch_changes => true)
140-
end
141-
142-
describe file("#{tmpdir}/ini_setting.ini") do
143-
it { should be_file }
144-
it { should contain('four = five') }
145-
it { should_not contain('[one]') }
146-
it { should_not contain('two = three') }
147-
end
148-
end
149-
150116
context '=> absent for global' do
151117
before :all do
152118
if fact('osfamily') == 'Darwin'

0 commit comments

Comments
 (0)