Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 90f3302ba844830a9cf3b831012432ebbb3ce331 1 parent 8474e9d
@blowmage blowmage authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.