File: 0030-fix_require_path_in_examples.patch

package info (click to toggle)
ruby-test-spec 0.10.0-3.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 280 kB
  • sloc: ruby: 1,855; makefile: 9
file content (14 lines) | stat: -rw-r--r-- 459 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Description: change path in examples to use lib installed by the package
Author: Cédric Boutillier <cedric.boutillier@gmail.com>
Last-Update: 2011-09-21

--- a/examples/stack_spec.rb
+++ b/examples/stack_spec.rb
@@ -1,6 +1,6 @@
 # Copied with minor code changes (should_xxx -> should.xxx) from RSpec.
 
-require File.dirname(__FILE__) + '/../lib/test/spec'
+require 'test/spec'
 require File.dirname(__FILE__) + "/stack"
 
 context "A stack (in general)" do