Sha256: 177f89dda09cfb11e076018e7da9307e7ad186b0522d5afdbed58572345be56d
Contents?: true
Size: 552 Bytes
Versions: 2
Compression:
Stored size: 552 Bytes
Contents
# encoding: UTF-8 describe Central::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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
central-devtools-0.8.4 | spec/unit/central/devtools/flay/file_list/call_spec.rb |
central-devtools-0.8.3 | spec/unit/central/devtools/flay/file_list/call_spec.rb |