Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion RubyTest.sublime-settings
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
"theme": "Packages/RubyTest/TestConsole.hidden-tmTheme",
"syntax": "Packages/RubyTest/TestConsole.tmLanguage",

"terminal_encoding": "utf-8"
"terminal_encoding": "utf-8",

// the internal project directory where ruby code is located and "spec" directory presented
"internal_dir": "."
}
5 changes: 4 additions & 1 deletion run_ruby_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def load_config(self):
global SYNTAX; SYNTAX = s.get('syntax')
global THEME; THEME = s.get('theme')
global TERMINAL_ENCODING; TERMINAL_ENCODING = s.get('terminal_encoding')

global INTERNAL_DIR; INTERNAL_DIR = s.get("internal_dir")

rbenv = s.get("check_for_rbenv")
rvm = s.get("check_for_rvm")
Expand Down Expand Up @@ -202,6 +202,9 @@ def run_shell_command(self, command, working_dir):
self.save_test_run(command, working_dir)
if COMMAND_PREFIX:
command = COMMAND_PREFIX + ' ' + command
if INTERNAL_DIR and INTERNAL_DIR != ".":
command = re.sub(r"" + INTERNAL_DIR + "\/", "", command)
working_dir += "/" + INTERNAL_DIR
if int(sublime.version().split('.')[0]) <= 2:
command = [command]
self.view.window().run_command("exec", {
Expand Down