[DRE-commits] [ruby-rspec-core] 03/07: ruby_test_bin.patch: use RUBY_TEST_BIN as Ruby interpreter in specs
Cédric Boutillier
boutil at alioth.debian.org
Thu Aug 15 19:59:01 UTC 2013
This is an automated email from the git hooks/post-receive script.
boutil pushed a commit to branch master
in repository ruby-rspec-core.
commit b84c410415b8ca01103e72fffebc0b63ad1d7484
Author: Cédric Boutillier <boutil at debian.org>
Date: Sat Aug 10 22:51:24 2013 +0200
ruby_test_bin.patch: use RUBY_TEST_BIN as Ruby interpreter in specs
---
debian/patches/ruby_test_bin.patch | 18 ++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 19 insertions(+)
diff --git a/debian/patches/ruby_test_bin.patch b/debian/patches/ruby_test_bin.patch
new file mode 100644
index 0000000..32d4bee
--- /dev/null
+++ b/debian/patches/ruby_test_bin.patch
@@ -0,0 +1,18 @@
+Description: use RUBY_TEST_BIN environment variable for ruby executable
+Author: Cédric Boutillier <boutil at 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
+
diff --git a/debian/patches/series b/debian/patches/series
index 1ffcc64..bcbb2d2 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@ disable-autotest-in-tests.patch
remove-rubygems-stuff-in-tests.patch
remove-aruba-stuff-in-tests.patch
fix-commandline-test.patch
+ruby_test_bin.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-rspec-core.git
More information about the Pkg-ruby-extras-commits
mailing list