Permalink
Browse files

Remove the rspec-rails provided "spec" task so we can define our own."

  • Loading branch information...
1 parent b519572 commit 7b2beea941d587dadbada84987d00dcf5a7b9a8e @justinko justinko committed Nov 22, 2011
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/tasks/rspec.rake
View
6 lib/tasks/rspec.rake
@@ -1,4 +1,6 @@
-RSpec::Core::RakeTask.new(:spec_lolz) do |spec|
- spec.rspec_opts = ["-r./spec/spec_helper.rb"]
+Rake.application.instance_variable_get('@tasks').delete('spec')
+
+RSpec::Core::RakeTask.new(:spec) do |task|
+ task.rspec_opts = ["-r./spec/spec_helper.rb"]
end

0 comments on commit 7b2beea

Please sign in to comment.