From 41809aab3797602e1db07f85389897dd09643714 Mon Sep 17 00:00:00 2001 From: Jon Atack Date: Sun, 30 Aug 2015 20:05:45 +0200 Subject: [PATCH] Rakefile: comment out backtrace option for Rails 3 on travis-ci --- Rakefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 9d533d6..fd8f610 100644 --- a/Rakefile +++ b/Rakefile @@ -5,7 +5,10 @@ Bundler::GemHelper.install_tasks RSpec::Core::RakeTask.new(:spec) do |rspec| ENV['SPEC'] = 'spec/ransack/**/*_spec.rb' - rspec.rspec_opts = ['--backtrace'] + # With Rails 3, using `--backtrace` raises 'invalid option' when testing. + # With Rails 4 and 5 it can be uncommented to see the backtrace: + # + # rspec.rspec_opts = ['--backtrace'] end RSpec::Core::RakeTask.new(:mongoid) do |rspec|