Permalink
Browse files

Rake spec as default task

  • Loading branch information...
1 parent 7ef703a commit 369ceae6b9f7a0e1955604ab06b67b0ef74cc744 Bèr Kessels committed Dec 11, 2012
Showing with 5 additions and 10 deletions.
  1. +5 −10 Rakefile
View
@@ -1,17 +1,12 @@
require 'rake'
-require 'rake/testtask'
+require 'rspec/core/rake_task'
require 'rdoc/task'
-desc 'Default: run unit tests.'
-task :default => :test
+desc 'Default: run specs.'
+task :default => :spec
-desc 'Test the piwik_analytics plugin.'
-Rake::TestTask.new(:test) do |t|
- t.libs << 'lib'
- t.libs << 'test'
- t.pattern = 'test/**/*_test.rb'
- t.verbose = true
-end
+RSpec::Core::RakeTask.new(:spec)
+task :default => :spec
desc 'Generate documentation for the piwik_analytics plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|

0 comments on commit 369ceae

Please sign in to comment.