User rake file to run tests:

* rake spec (all);
* rake spec:unit;
* rake spec:integration.
This commit is contained in:
Vladmir Sharhsov(warpc) 2013-07-19 12:12:30 +04:00
parent 0de205df4c
commit 8e50177424
1 changed files with 20 additions and 0 deletions

20
Rakefile Normal file
View File

@ -0,0 +1,20 @@
require 'rspec/core/rake_task'
rspec_opts = "--color --format documentation"
RSpec::Core::RakeTask.new(:spec, 'spec:unit') do |t|
#t.rspec_opts = "--color --format documentation"
end
namespace :spec do
RSpec::Core::RakeTask.new(:unit) do |t|
t.rspec_opts = rspec_opts
t.pattern = Dir['spec/unit/**/*_spec.rb']
end
RSpec::Core::RakeTask.new(:integration) do |t|
#t.rspec_opts = rspec_opts
t.pattern = Dir['spec/integration/**/*_spec.rb']
end
end
task :default => :spec