summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2012-11-19 14:46:40 +0100
committerAzul <azul@leap.se>2012-11-19 14:46:40 +0100
commit9810d5b66ca7f81df402e9b05957466a947bdf9b (patch)
tree9602e8b1dfd7e63a6d77121cf7e7d576c516f031
parentac4b60d13162c46ec72112f0ef3d315734868d1e (diff)
use latest mocha version without monkey patching :)
-rw-r--r--common_dependencies.rb2
-rw-r--r--test/test_helper.rb2
-rw-r--r--users/test/test_helper.rb2
3 files changed, 3 insertions, 3 deletions
diff --git a/common_dependencies.rb b/common_dependencies.rb
index 5312a80..7542b1b 100644
--- a/common_dependencies.rb
+++ b/common_dependencies.rb
@@ -1,6 +1,6 @@
source "http://rubygems.org"
group :test do
- gem 'mocha', :require => false
+ gem 'mocha', :require => false, :version => '~> 0.13.0'
end
diff --git a/test/test_helper.rb b/test/test_helper.rb
index 50d5159..0016771 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -2,7 +2,7 @@ ENV["RAILS_ENV"] = "test"
require File.expand_path('../../config/environment', __FILE__)
require 'rails/test_help'
-require 'mocha'
+require 'mocha/setup'
# Load support files from all engines
Dir["#{File.dirname(__FILE__)}/../*/test/support/**/*.rb"].each { |f| require f }
diff --git a/users/test/test_helper.rb b/users/test/test_helper.rb
index e8f0125..52dff53 100644
--- a/users/test/test_helper.rb
+++ b/users/test/test_helper.rb
@@ -1,7 +1,7 @@
ENV["RAILS_ENV"] = "test"
require File.expand_path('../../../test/dummy/config/environment', __FILE__)
require 'rails/test_help'
-require 'mocha'
+require 'mocha/setup'
Rails.backtrace_cleaner.remove_silencers!