spec/generated_files_spec.rb in rake-builder-0.0.9 vs spec/generated_files_spec.rb in rake-builder-0.0.10

- old
+ new

@@ -10,14 +10,12 @@ @expected_generated = Rake::Builder.expand_paths_with_root( [ 'main.o', 'rake-builder-testfile.txt', @project.makedepend_file, - @project.target - ], - SPEC_PATH - ) + @project.target ], + SPEC_PATH ) end after( :each ) do Rake::Task[ 'clean' ].execute end @@ -26,10 +24,10 @@ @project.generated_files.should =~ @expected_generated end it 'lists generated files, via the task' do output = capturing_output do - Rake::Task[ 'generated_files' ].execute + Rake::Task[ 'generated_files' ].invoke end eval( output ).should =~ @expected_generated end it 'removes generated files with \'clean\'' do