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