Browse files

Fix failure with minitest 5.0.7

Require minitest/mock in test where stub method is needed.

Apparently this was being "imported" by minitest pride plugin, which
previously required "minitest/autorun", that required "minitest/mock",
making the method available by chance.

It has been changed in minitest:

So we need to make sure we require what we really need where necessary.
  • Loading branch information...
1 parent faccffe commit b77781c012ebb60bfeee114aef6597ab8d3d3016 @carlosantoniodasilva carlosantoniodasilva committed Sep 6, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 actionview/test/template/url_helper_test.rb
@@ -1,5 +1,6 @@
# encoding: utf-8
require 'abstract_unit'
+require 'minitest/mock'
class UrlHelperTest < ActiveSupport::TestCase

0 comments on commit b77781c

Please sign in to comment.