Skip to content

Commit 09bbcb0

Browse files
committed
renamed teardown to close
1 parent 39fb707 commit 09bbcb0

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

spec/outputs/file_spec.rb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282

8383
it 'doesnt allow the path to start with a dynamic string' do
8484
expect { output.register }.to raise_error(LogStash::ConfigurationError)
85-
output.teardown
85+
output.close
8686
end
8787

8888
context 'doesnt allow the root directory to have some dynamic part' do
@@ -93,7 +93,7 @@
9393
it "with path: #{test_path}" do
9494
path = test_path
9595
expect { output.register }.to raise_error(LogStash::ConfigurationError)
96-
output.teardown
96+
output.close
9797
end
9898
end
9999
end
@@ -133,7 +133,7 @@
133133
error_file = File.join(path, config["filename_failure"])
134134

135135
expect(File.exist?(error_file)).to eq(true)
136-
output.teardown
136+
output.close
137137
end
138138
end
139139

@@ -152,7 +152,7 @@
152152
output.receive(bad_event)
153153

154154
expect(Dir.glob(File.join(path, "*")).size).to eq(2)
155-
output.teardown
155+
output.close
156156
end
157157
end
158158

@@ -165,7 +165,7 @@
165165
output.receive(bad_event)
166166

167167
expect(Dir.glob(File.join(path, "*")).size).to eq(1)
168-
output.teardown
168+
output.close
169169
end
170170
end
171171
end
@@ -183,7 +183,7 @@
183183

184184
good_file = File.join(path, good_event['error'])
185185
expect(File.exist?(good_file)).to eq(true)
186-
output.teardown
186+
output.close
187187
end
188188
end
189189

@@ -201,7 +201,7 @@
201201
output.receive(good_event)
202202

203203
expect(File.exist?(expected_path)).to eq(true)
204-
output.teardown
204+
output.close
205205
end
206206
end
207207

@@ -223,7 +223,7 @@
223223
output.receive(good_event)
224224

225225
expect(File.exist?(expected_path)).to eq(true)
226-
output.teardown
226+
output.close
227227
end
228228
end
229229

@@ -239,7 +239,7 @@
239239

240240
good_file = File.join(path, good_event['error'])
241241
expect(File.exist?(good_file)).to eq(true)
242-
output.teardown
242+
output.close
243243
end
244244
end
245245
end

0 commit comments

Comments
 (0)