summaryrefslogtreecommitdiff
path: root/test/rake/test_rake_functional.rb
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-08-01 06:45:43 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-08-01 06:45:43 +0000
commitf209dc7242130144399e85d1dea1a5a0c8c5efe7 (patch)
tree42c8bd3a9e47f0649aed8f0179109b2ff5881a86 /test/rake/test_rake_functional.rb
parent6851f29bb77592e9908bb61ab117ed382bddcb66 (diff)
* test/rake/test_rake_functional.rb: Don't assume the binary name of
ruby is "ruby". [Ruby 1.9 - Bug #5114] * test/rake/helper.rb: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32797 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rake/test_rake_functional.rb')
-rw-r--r--test/rake/test_rake_functional.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/rake/test_rake_functional.rb b/test/rake/test_rake_functional.rb
index bfa9375a39a..95a36e1ad92 100644
--- a/test/rake/test_rake_functional.rb
+++ b/test/rake/test_rake_functional.rb
@@ -174,7 +174,7 @@ class TestRakeFunctional < Rake::TestCase
rake "inline_verbose_default"
- assert_match(/ruby -e/, @err)
+ assert_match(/#{Regexp.quote(RUBY)} -e/, @err)
end
def test_inline_verbose_true_should_show_command
@@ -182,7 +182,7 @@ class TestRakeFunctional < Rake::TestCase
rake "inline_verbose_true"
- assert_match(/ruby -e/, @err)
+ assert_match(/#{Regexp.quote(RUBY)} -e/, @err)
end
def test_inline_verbose_false_should_not_show_command
@@ -190,7 +190,7 @@ class TestRakeFunctional < Rake::TestCase
rake "inline_verbose_false"
- refute_match(/ruby -e/, @err)
+ refute_match(/#{Regexp.quote(RUBY)} -e/, @err)
end
def test_block_verbose_false_should_not_show_command
@@ -198,7 +198,7 @@ class TestRakeFunctional < Rake::TestCase
rake "block_verbose_false"
- refute_match(/ruby -e/, @err)
+ refute_match(/#{Regexp.quote(RUBY)} -e/, @err)
end
def test_block_verbose_true_should_show_command
@@ -206,7 +206,7 @@ class TestRakeFunctional < Rake::TestCase
rake "block_verbose_true"
- assert_match(/ruby -e/, @err)
+ assert_match(/#{Regexp.quote(RUBY)} -e/, @err)
end
def test_standalone_verbose_true_should_show_command
@@ -214,7 +214,7 @@ class TestRakeFunctional < Rake::TestCase
rake "standalone_verbose_true"
- assert_match(/ruby -e/, @err)
+ assert_match(/#{Regexp.quote(RUBY)} -e/, @err)
end
def test_standalone_verbose_false_should_not_show_command
@@ -222,7 +222,7 @@ class TestRakeFunctional < Rake::TestCase
rake "standalone_verbose_false"
- refute_match(/ruby -e/, @err)
+ refute_match(/#{Regexp.quote(RUBY)} -e/, @err)
end
def test_dry_run