spec/rake/funnel/tasks/copy_spec.rb in rake-funnel-0.0.3.pre vs spec/rake/funnel/tasks/copy_spec.rb in rake-funnel-0.0.4.pre

- old
+ new

@@ -1,7 +1,5 @@ -require 'tmpdir' - include Rake include Rake::Funnel::Support describe Rake::Funnel::Tasks::Copy do before { @@ -93,31 +91,9 @@ source .select { |src| !File.directory?(src) } .each do |src| expect(RakeFileUtils).to have_received(:cp).with(src, File.join(subject.target, no_prefix(src))) end - end - end - - describe 'source is evaluated lazily' do - let(:source) { FileList.new('*.example') } - - before { - allow(Finder).to receive(:new).and_return(double(Finder).as_null_object) - } - - before { - Dir.mktmpdir do |tmp| - Dir.chdir(tmp) do - FileUtils.touch('new file.example') - - Task[subject.name].invoke - end - end - } - - it 'should detect new files' do - expect(Finder).to have_received(:new).with(['new file.example'], any_args) end end end end