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.
require 'rake'
require 'rspec/core/rake_task'
-task :default => [:test]
+task :default do
+ sh %{rake -T}
+end
+
+# Aliases for spec. The (s) versions are used by rvm specs/tests.
+task :test => [:spec]
+task :tests => [:spec]
+task :specs => [:spec]
-desc 'Run RSpec'
-RSpec::Core::RakeTask.new(:test) do |t|
+desc 'Run all RSpec tests'
+RSpec::Core::RakeTask.new(:spec) do |t|
t.rspec_opts = ['--color']
end