aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPrathamesh Sonpatki <csonpatki@gmail.com>2013-05-18 13:11:17 +0530
committerPrathamesh Sonpatki <csonpatki@gmail.com>2013-05-18 13:29:43 +0530
commit2b66b32a4cddfe37006f8e457d329f26aab477b0 (patch)
tree4894d058717d698964f0fc36d68141f1c90daa22
parent1ff53413852db94476d4851e1535669b953c9393 (diff)
downloadrails-2b66b32a4cddfe37006f8e457d329f26aab477b0.tar.gz
rails-2b66b32a4cddfe37006f8e457d329f26aab477b0.tar.bz2
rails-2b66b32a4cddfe37006f8e457d329f26aab477b0.zip
Don't autorequire mocha to avoid deprecation warnings
- https://travis-ci.org/rails/rails/jobs/7264822 contains deprecated warnings given by Mocha version 0.14 - 632f215da added Mocha 0.14 to Gemfile - But with the version, require: false was removed - So Mocha started giving deprecation warnings - Acc.to Mocha documentation(https://github.com/freerange/mocha#bundler) it should not be auto required.
-rw-r--r--Gemfile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Gemfile b/Gemfile
index d1fa0c2a1d..b0f91c6dac 100644
--- a/Gemfile
+++ b/Gemfile
@@ -2,7 +2,11 @@ source 'https://rubygems.org'
gemspec
-gem 'mocha', '~> 0.14'
+# This needs to be with require false as it is
+# loaded after loading the test library to
+# ensure correct loading order
+gem 'mocha', '~> 0.14', require: false
+
gem 'rack-cache', '~> 1.2'
gem 'bcrypt-ruby', '~> 3.0.0'
gem 'jquery-rails', '~> 2.2.0'