File: path_to_executable.patch

package info (click to toggle)
ruby-rspec 3.5.0c3e0m0s0-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 6,312 kB
  • ctags: 4,788
  • sloc: ruby: 62,572; sh: 785; makefile: 100
file content (18 lines) | stat: -rw-r--r-- 639 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: fix path to rspec executable
 the relative path is different in the gem and in the installed version
Author: Cédric Boutillier <boutil@debian.org>
Forwarded: not-needed
Last-Update: 2015-06-13

--- a/rspec-core/lib/rspec/core.rb
+++ b/rspec-core/lib/rspec/core.rb
@@ -151,7 +151,8 @@
 
     # @private path to executable file.
     def self.path_to_executable
-      @path_to_executable ||= File.expand_path('../../../exe/rspec', __FILE__)
+      #@path_to_executable ||= File.expand_path('../../../exe/rspec', __FILE__)
+      @path_to_executable ||= File.expand_path('../../../../../bin/rspec', __FILE__)
     end
   end