We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e23383e + b14dbd7 commit 7352162Copy full SHA for 7352162
test/redcarpet_bin_test.rb
@@ -64,8 +64,8 @@ def test_legacy_option_parsing
64
65
def run_bin(*args)
66
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|
+ ruby = RbConfig.ruby
+ IO.popen("#{ruby} #{bin_path} #{args.join(" ")}") do |stream|
69
@output = stream.read
70
end
71
0 commit comments