From 7be66a380a17172093eb462b0d12cb98576026ca Mon Sep 17 00:00:00 2001 From: Jon Atack Date: Thu, 20 Aug 2015 12:59:36 +0200 Subject: [PATCH] Remove Active Record from Rakefile --- Rakefile | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Rakefile b/Rakefile index 67cbb18..9d533d6 100644 --- a/Rakefile +++ b/Rakefile @@ -1,15 +1,11 @@ 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 + rspec.rspec_opts = ['--backtrace'] end RSpec::Core::RakeTask.new(:mongoid) do |rspec|