6965369084
* small refactoring rakefile.
14 lines
340 B
Ruby
14 lines
340 B
Ruby
require 'rspec/core/rake_task'
|
|
|
|
namespace :spec do
|
|
RSpec::Core::RakeTask.new(:unit) do |t|
|
|
t.rspec_opts = "--color --format documentation"
|
|
t.pattern = Dir['spec/unit/**/*_spec.rb']
|
|
end
|
|
RSpec::Core::RakeTask.new(:integration) do |t|
|
|
t.pattern = Dir['spec/integration/**/*_spec.rb']
|
|
end
|
|
end
|
|
|
|
task :default => 'spec:unit'
|