Skip to content

Commit 405ee34

Browse files
committed
Revert "Test Failure Fixes"
This reverts commit bc41343.
1 parent bc41343 commit 405ee34

2 files changed

Lines changed: 6 additions & 12 deletions

File tree

spec/application_helper.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
require 'spec_helper'
1818
require 'java_buildpack/component/application'
1919
require 'java_buildpack/component/services'
20-
require 'java_buildpack/logging/logger_factory'
2120
require 'json'
2221

2322
shared_context 'application_helper' do
@@ -40,7 +39,6 @@
4039
end
4140

4241
let(:application) do
43-
JavaBuildpack::Logging::LoggerFactory.instance.setup app_dir
4442
JavaBuildpack::Component::Application.new app_dir
4543
end
4644

spec/java_buildpack/util/filtering_pathname_spec.rb

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,7 @@
169169
filtering_target.each_entry do |entry|
170170
entries << entry
171171
end
172-
expect(entries.to_set)
173-
.to eq([Pathname.new('.'), Pathname.new('..'), Pathname.new('.java-buildpack.log'), Pathname.new('good')].to_set)
172+
expect(entries.to_set).to eq([Pathname.new('.'), Pathname.new('..'), Pathname.new('good')].to_set)
174173
end
175174

176175
it 'delegates each_line when the file is filtered in' do
@@ -185,8 +184,7 @@
185184
end
186185

187186
it 'returns each visible entry from entries' do
188-
expect(filtering_target.entries.to_set)
189-
.to eq([Pathname.new('.'), Pathname.new('..'), Pathname.new('.java-buildpack.log'), Pathname.new('good')].to_set)
187+
expect(filtering_target.entries.to_set).to eq([Pathname.new('.'), Pathname.new('..'), Pathname.new('good')].to_set)
190188
end
191189

192190
it 'delegates opendir when the directory is filtered in' do
@@ -210,21 +208,19 @@
210208
end
211209

212210
it 'returns each child as a filtered pathname from children' do
213-
expect(filtering_target.children).to eq([app_dir + '.java-buildpack.log', app_dir + 'good'])
211+
expect(filtering_target.children).to eq([app_dir + 'good'])
214212
end
215213

216214
it 'returns each child as a pathname from children(false)' do
217-
expect(filtering_target.children(false)).to eq([Pathname.new('.java-buildpack.log'), Pathname.new('good')])
215+
expect(filtering_target.children(false)).to eq([Pathname.new('good')])
218216
end
219217

220218
it 'yields each child as a filtered pathname from each_child' do
221-
expect { |b| filtering_target.each_child(&b) }
222-
.to yield_successive_args(app_dir + '.java-buildpack.log', app_dir + 'good')
219+
expect { |b| filtering_target.each_child(&b) }.to yield_successive_args(app_dir + 'good')
223220
end
224221

225222
it 'yields each child as a pathname from each_child(false)' do
226-
expect { |b| filtering_target.each_child(false, &b) }
227-
.to yield_successive_args(Pathname.new('.java-buildpack.log'), Pathname.new('good'))
223+
expect { |b| filtering_target.each_child(false, &b) }.to yield_successive_args(Pathname.new('good'))
228224
end
229225

230226
it 'yields each component of the path from each_filename' do

0 commit comments

Comments
 (0)