diff --git a/test/redcarpet_bin_test.rb b/test/redcarpet_bin_test.rb index 2b861a79..c9636f68 100644 --- a/test/redcarpet_bin_test.rb +++ b/test/redcarpet_bin_test.rb @@ -64,8 +64,8 @@ def test_legacy_option_parsing def run_bin(*args) bin_path = File.expand_path('../../bin/redcarpet', __FILE__) - ruby = "ruby " if RUBY_PLATFORM =~ /mswin|mingw/ - IO.popen("#{ruby}#{bin_path} #{args.join(" ")}") do |stream| + ruby = RbConfig.ruby + IO.popen("#{ruby} #{bin_path} #{args.join(" ")}") do |stream| @output = stream.read end end