Skip to content

Commit 7352162

Browse files
authored
Merge pull request #649 from rbalint/master
Run redcarpet in redcarpet_bin_test with the interpreter the test sta…
2 parents e23383e + b14dbd7 commit 7352162

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/redcarpet_bin_test.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ def test_legacy_option_parsing
6464

6565
def run_bin(*args)
6666
bin_path = File.expand_path('../../bin/redcarpet', __FILE__)
67-
ruby = "ruby " if RUBY_PLATFORM =~ /mswin|mingw/
68-
IO.popen("#{ruby}#{bin_path} #{args.join(" ")}") do |stream|
67+
ruby = RbConfig.ruby
68+
IO.popen("#{ruby} #{bin_path} #{args.join(" ")}") do |stream|
6969
@output = stream.read
7070
end
7171
end

0 commit comments

Comments
 (0)