Sha256: 3479696fc97c7448387be90f2dddf5b95a164b6cde68a096b4fb0249c0faf018
Contents?: true
Size: 578 Bytes
Versions: 7
Compression:
Stored size: 578 Bytes
Contents
describe Devtools::Flay::FileList, '.call' do subject(:output) { described_class.call([tmpdir.to_s], [exclude]) } let(:tmpdir) { Dir.mktmpdir } let(:one) { Pathname(tmpdir).join('1.rb') } let(:two) { Pathname(tmpdir).join('2.erb') } let(:three) { Pathname(tmpdir).join('3.rb') } let(:exclude) { Pathname(tmpdir).join('3*').to_s } around(:each) do |example| [one, two, three].map(&FileUtils.method(:touch)) example.run FileUtils.rm_rf(tmpdir) end it { should eql(Set.new([one, two])) } end
Version data entries
7 entries across 7 versions & 1 rubygems