Browse files

(#10026) Add aliases for test,specs,tests to Rakefile and provide -T …

…as default.

I've cleaned up the Rakefile a bit so that the aliases:

* test
* specs
* tests

Now point to "spec". The (s) versions are used by rvm but generally these are
all provided for convenience in case someone uses the wrong form.

I've also changed the default rake task to show the list of tasks (rake -T).

The description for rake spec is also a bit longer.
  • Loading branch information...
1 parent c6807fa commit 596e1d8fadde4ec510f5b822ca13a585deb62354 @kbarber kbarber committed Oct 11, 2011
Showing with 10 additions and 3 deletions.
  1. +10 −3 Rakefile
@@ -1,10 +1,17 @@
require 'rake'
require 'rspec/core/rake_task'
-task :default => [:test]
+task :default do
+ sh %{rake -T}
+# Aliases for spec. The (s) versions are used by rvm specs/tests.
+task :test => [:spec]
+task :tests => [:spec]
+task :specs => [:spec]
-desc 'Run RSpec' do |t|
+desc 'Run all RSpec tests' do |t|
t.rspec_opts = ['--color']

0 comments on commit 596e1d8

Please sign in to comment.