diff --git a/OpenRSpecFile.py b/OpenRSpecFile.py index cb98777..23c4fdb 100644 --- a/OpenRSpecFile.py +++ b/OpenRSpecFile.py @@ -17,13 +17,10 @@ def run(self, option): current_file = re.search(r"([\w\.]+)$", current_file_path).group(1) base_name = re.search(r"(\w+)\.(\w+)$", current_file).group(1) base_name = re.sub('_spec', '', base_name) - print base_name source_matcher = re.compile("[/\\\\]" + base_name + "\.rb$") test_matcher = re.compile("[/\\\\]" + base_name + "_spec\.rb$") - print(current_file) - if option == 'next': print "Current file: " + current_file if re.search(re.compile(base_name + "_spec\.rb$"), current_file): @@ -49,7 +46,6 @@ def run(self, option): window.focus_view(v) def open_project_file(self, file_matcher, window, auto_set_view=-1): - print file_matcher for root, dirs, files in os.walk(window.folders()[0]): for f in files: if re.search(r"\.rb$", f):