File: ruby_test_bin.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-- 623 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: use RUBY_TEST_BIN environment variable for ruby executable
Author: Cédric Boutillier <boutil@debian.org>
Origin: vendor
Forwarded: not-needed
Last-Update: 2013-08-10
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/rspec-core/spec/rspec/core_spec.rb
+++ b/rspec-core/spec/rspec/core_spec.rb
@@ -61,7 +61,7 @@
            "puts RSpec::Mocks.name; " +
            "puts RSpec::Expectations.name"
 
-    result = `ruby -e '#{code}'`.chomp
+    result = `#{ENV['RUBY_TEST_BIN']} -e '#{code}'`.chomp
     expect(result.split("\n")).to eq(%w[ RSpec::Mocks RSpec::Expectations ])
   end