spec/rake/funnel/tasks/bin_path_spec.rb in rake-funnel-0.21.0 vs spec/rake/funnel/tasks/bin_path_spec.rb in rake-funnel-0.21.1

- old
+ new

@@ -1,10 +1,8 @@ -include Rake - describe Rake::Funnel::Tasks::BinPath do before do - Task.clear + Rake::Task.clear end describe 'defaults' do its(:name) { should == :bin_path } its(:search_pattern) { should eq(%w(tools/* tools/*/bin packages/**/tools)) } @@ -40,11 +38,11 @@ allow(File).to receive(:directory?).and_return(true) allow(File).to receive(:directory?).with(search_pattern.last).and_return(false) end before do - Task[subject.name].invoke + Rake::Task[subject.name].invoke end it 'should prepend sorted matching folders to the PATH environment variable' do expect(ENV).to have_received(:[]=).with('PATH', /^#{directories}/) end @@ -94,10 +92,10 @@ before do allow(Dir).to receive(:[]).with(*search_pattern).and_return([]) end before do - Task[subject.name].invoke + Rake::Task[subject.name].invoke end it 'should not print message' do expect(Rake).not_to have_received(:rake_output_message) end