Remove Active Record from Rakefile
This commit is contained in:
parent
0b1fad122c
commit
7be66a380a
4
Rakefile
4
Rakefile
|
@ -1,16 +1,12 @@
|
|||
require 'bundler'
|
||||
require 'rspec/core/rake_task'
|
||||
require 'active_record'
|
||||
|
||||
Bundler::GemHelper.install_tasks
|
||||
|
||||
RSpec::Core::RakeTask.new(:spec) do |rspec|
|
||||
ENV['SPEC'] = 'spec/ransack/**/*_spec.rb'
|
||||
if ActiveRecord::VERSION::MAJOR >= 4 || RUBY_VERSION < '2.2'
|
||||
# Raises `invalid option: --backtrace` with Rails 3.x on Ruby 2.2
|
||||
rspec.rspec_opts = ['--backtrace']
|
||||
end
|
||||
end
|
||||
|
||||
RSpec::Core::RakeTask.new(:mongoid) do |rspec|
|
||||
ENV['SPEC'] = 'spec/mongoid/**/*_spec.rb'
|
||||
|
|
Loading…
Reference in New Issue