|
169 | 169 | filtering_target.each_entry do |entry| |
170 | 170 | entries << entry |
171 | 171 | 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) |
174 | 173 | end |
175 | 174 |
|
176 | 175 | it 'delegates each_line when the file is filtered in' do |
|
185 | 184 | end |
186 | 185 |
|
187 | 186 | 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) |
190 | 188 | end |
191 | 189 |
|
192 | 190 | it 'delegates opendir when the directory is filtered in' do |
|
210 | 208 | end |
211 | 209 |
|
212 | 210 | 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']) |
214 | 212 | end |
215 | 213 |
|
216 | 214 | 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')]) |
218 | 216 | end |
219 | 217 |
|
220 | 218 | 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') |
223 | 220 | end |
224 | 221 |
|
225 | 222 | 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')) |
228 | 224 | end |
229 | 225 |
|
230 | 226 | it 'yields each component of the path from each_filename' do |
|
0 commit comments