File: require-mocha-setup.patch

package info (click to toggle)
ruby-metriks 0.9.9.8-3.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 288 kB
  • sloc: ruby: 1,877; makefile: 2
file content (17 lines) | stat: -rw-r--r-- 453 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Require mocha/setup instead of mocha in test helper
 API for mocha has changed slightly since these tests were 
 developed and this patch ensures the tests run correctly.
Author: Tim Potter <tpot@hp.com>
Last Update: 2014-09-27

--- ruby-metriks-0.9.9.6.orig/test/test_helper.rb
+++ ruby-metriks-0.9.9.6/test/test_helper.rb
@@ -1,7 +1,7 @@
 require 'test/unit'
 require 'pp'
 
-require 'mocha'
+require 'mocha/setup'
 
 require 'metriks'