From d636a56376b0e53bd63e446455eb453f9e198ae4 Mon Sep 17 00:00:00 2001 From: Matijs van Zuijlen Date: Wed, 10 Sep 2014 08:08:53 +0200 Subject: [PATCH] Stop using FileList to specify RSpec patterns This was never meant to work. --- tasks/test.rake | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tasks/test.rake b/tasks/test.rake index cf4df4d8d..5842f9a24 100644 --- a/tasks/test.rake +++ b/tasks/test.rake @@ -5,21 +5,19 @@ require 'rspec' require 'rspec/core/rake_task' namespace 'test' do - UNIT_TESTS = FileList['spec/reek/**/*_spec.rb'] - RSpec::Core::RakeTask.new('spec') do |t| - t.pattern = UNIT_TESTS + t.pattern = 'spec/reek/**/*_spec.rb' t.ruby_opts = ['-Ilib -w'] end desc 'Tests various release attributes of the gem' RSpec::Core::RakeTask.new('gem') do |t| - t.pattern = FileList['spec/gem/**/*_spec.rb'] + t.pattern = 'spec/gem/**/*_spec.rb' end desc 'Tests code quality' RSpec::Core::RakeTask.new('quality') do |t| - t.pattern = FileList['quality/**/*_spec.rb'] + t.pattern = 'quality/**/*_spec.rb' t.ruby_opts = ['-Ilib'] end