Skip to content

Commit

Permalink
Fix tests failing from different tab_size
Browse files Browse the repository at this point in the history
  • Loading branch information
mwean committed Aug 14, 2014
1 parent 9a706ba commit 71251ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/helper.py
Expand Up @@ -4,6 +4,7 @@
class TestHelper(TestCase):
def setUp(self):
self.view = sublime.active_window().new_file()
self.view.settings().set("tab_size", 2)

def tearDown(self):
if self.view:
Expand All @@ -16,7 +17,6 @@ def set_text(self, lines):
self.view.run_command('insert', { 'characters': line + "\n" })

def check_command(self, text, start, end, extend_selection=False, indent_offset=0):
tab_size = self.view.settings().get("tab_size")
self.set_text(text)
self.view.sel().clear()
self.view.sel().add(sublime.Region(start[0], start[1]))
Expand Down

0 comments on commit 71251ba

Please sign in to comment.