Permalink
Browse files

Remove unnecessary require

The rake task doesn't use core, and doesn't need the DSL loaded to work.
Having core loaded stomps on minitest if in the same project.
  • Loading branch information...
1 parent 8474e9d commit 90f3302ba844830a9cf3b831012432ebbb3ce331 @blowmage blowmage committed Oct 4, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/rspec/rails/tasks/rspec.rake
View
3 lib/rspec/rails/tasks/rspec.rake
@@ -1,4 +1,3 @@
-require 'rspec/core'
require 'rspec/core/rake_task'
if default = Rake.application.instance_variable_get('@tasks')['default']
default.prerequisites.delete('test')
@@ -8,7 +7,7 @@ orm_setting = Rails.configuration.generators.options[:rails][:orm]
spec_prereq = if(orm_setting == :active_record)
Rails.configuration.active_record[:schema_format] == :sql ? "db:test:clone_structure" : "db:test:prepare"
else
- :noop
+ :noop
end
task :noop do; end
task :default => :spec

0 comments on commit 90f3302

Please sign in to comment.