File: 001-fix-mocha-deprecation

package info (click to toggle)
ruby-gelf 1.4.0-4.1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 200 kB
  • sloc: ruby: 716; makefile: 2
file content (14 lines) | stat: -rw-r--r-- 396 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Description: Fix mocha deprecation
 Update the mocha require to fix a deprecation warning

--- ruby-gelf-1.4.0.orig/test/helper.rb
+++ ruby-gelf-1.4.0/test/helper.rb
@@ -1,7 +1,7 @@
 require 'rubygems'
 require 'test/unit'
 require 'shoulda'
-require 'mocha'
+require 'mocha/setup'
 
 $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
 $LOAD_PATH.unshift(File.dirname(__FILE__))