Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

guard against calling prerequisites on nil #378

wants to merge 1 commit into
Jump to file or symbol
Failed to load files and symbols.
+3 −1
@@ -1,6 +1,8 @@
require 'rspec/core'
require 'rspec/core/rake_task'
+if default = Rake.application.instance_variable_get('@tasks')['default']
+ default.prerequisites.delete('test')
spec_prereq = Rails.configuration.generators.options[:rails][:orm] == :active_record ? "db:test:prepare" : :noop
task :noop do; end