From 6a543c203b0eda99f93fe9129b3da79f3f562d22 Mon Sep 17 00:00:00 2001 From: lujanfernaud Date: Wed, 6 Jun 2018 09:45:23 +0100 Subject: [PATCH] Add Mocha --- Gemfile | 1 + Gemfile.lock | 4 ++++ test/test_helper.rb | 1 + 3 files changed, 6 insertions(+) diff --git a/Gemfile b/Gemfile index d4e01820..fc5d62cf 100644 --- a/Gemfile +++ b/Gemfile @@ -65,6 +65,7 @@ group :development, :test do end group :test do + gem 'mocha', '~> 1.5' gem 'capybara', '~> 2.14' gem 'capybara-webkit', '~> 1.15' gem 'capybara-screenshot', '~> 1.0', '>= 1.0.18' diff --git a/Gemfile.lock b/Gemfile.lock index 9f7bb2cd..7bcb5b0f 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -211,6 +211,7 @@ GEM lumberjack (1.0.13) mail (2.7.0) mini_mime (>= 0.1.1) + metaclass (0.0.4) method_source (0.9.0) mime-types (3.1) mime-types-data (~> 3.2015) @@ -224,6 +225,8 @@ GEM builder minitest (>= 5.0) ruby-progressbar + mocha (1.5.0) + metaclass (~> 0.0.1) money (6.11.0) i18n (>= 0.6.4, < 1.1) multi_json (1.13.1) @@ -452,6 +455,7 @@ DEPENDENCIES listen (>= 3.0.5, < 3.2) mini_magick (~> 4.8) minitest-reporters (= 1.1.14) + mocha (~> 1.5) nokogiri (~> 1.8, >= 1.8.2) pg (~> 0.18) pg_search (~> 2.1, >= 2.1.2) diff --git a/test/test_helper.rb b/test/test_helper.rb index 8fd3c133..c1000d82 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -5,6 +5,7 @@ require File.expand_path('../../config/environment', __FILE__) require 'rails/test_help' +require 'mocha/minitest' require 'support/support' require 'capybara/rails'