Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

I'm a stupid idiot!

  • Loading branch information...
commit aaabdcae5d2ea0821a4b0d544ce810db2330a486 1 parent fb11b73
Tom authored
Showing with 15 additions and 1 deletion.
  1. +15 −1 Rakefile
View
16 Rakefile
@@ -5,7 +5,6 @@ require 'dashboard'
require 'dm-migrations'
require 'rake'
-require 'rspec/core/rake_task'
namespace :db do
desc "DESTRUCTIVE: auto_migrates the database"
@@ -20,3 +19,18 @@ namespace :page_speed do
PageSpeed.fetch_results
end
end
+
+begin
+ require 'rspec/core/rake_task'
+
+ desc "Run all specs"
+ RSpec::Core::RakeTask.new('spec') do |t|
+ t.pattern = 'spec/**/*.rb'
+ end
+
+ desc "Run all specs (alias to spec)"
+ task :test => :spec
+ task :default => :spec
+rescue MissingSourceFile # you're not in dev mode
+end
+
Please sign in to comment.
Something went wrong with that request. Please try again.