File: ruby_test_bin.patch

package info (click to toggle)
ruby-rspec-core 2.14.7-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,756 kB
  • ctags: 1,195
  • sloc: ruby: 12,708; makefile: 14
file content (18 lines) | stat: -rw-r--r-- 601 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/spec/rspec/core_spec.rb
+++ b/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