Rakefile in percheron-0.7.10 vs Rakefile in percheron-0.7.11

- old
+ new

@@ -2,11 +2,11 @@ require 'rspec/core/rake_task' require 'cane/rake_task' require 'rubocop/rake_task' desc 'Run cane, RuboCop, unit and integration tests' -task test: %w(test:style spec:unit spec:integration) +task test: %w(test:style spec) namespace :test do desc 'Run cane' Cane::RakeTask.new(:cane) @@ -15,16 +15,15 @@ desc 'Run cane and RuboCop' task style: %w(test:cane test:rubocop) end -RSpec::Core::RakeTask.new('spec') do |config| - config.pattern = './spec/**{,/*/**}/*_spec.rb' -end +desc 'Run unit and integration specs' +task spec: %w(spec:unit spec:integration) RSpec::Core::RakeTask.new('spec:unit') do |config| - config.pattern = './spec/unit/**{,/*/**}/*_spec.rb' + config.pattern = './spec/unit/**/*_spec.rb' end RSpec::Core::RakeTask.new('spec:integration') do |config| - config.pattern = './spec/integration/**{,/*/**}/*_spec.rb' + config.pattern = './spec/integration/*_spec.rb' end