Skip to content

Commit

Permalink
Merge pull request #292 from troessner/fix-rspec-patterns
Browse files Browse the repository at this point in the history
Stop using FileList to specify RSpec patterns
  • Loading branch information
Timo Rößner committed Sep 10, 2014
2 parents fba2b02 + d636a56 commit 5d5350a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tasks/test.rake
Expand Up @@ -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

Expand Down

0 comments on commit 5d5350a

Please sign in to comment.