Skip to content

Commit

Permalink
update spec runner to work with invoke's boolean flags to run specs u…
Browse files Browse the repository at this point in the history
…ntranslated
  • Loading branch information
bivab committed Mar 19, 2013
1 parent 704eac3 commit c9be93e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tasks/specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@


class Rubyspecs(BaseTest):
def __init__(self, files, options, translated=True):
def __init__(self, files, options, untranslated=False):
super(Rubyspecs, self).__init__()
self.exe = "`pwd`/bin/%s" % ("topaz" if translated else "topaz_untranslated.py")
self.exe = "`pwd`/bin/%s" % ("topaz_untranslated.py" if untranslated else "topaz")
self.files = files
self.options = options
self.download_mspec()
Expand All @@ -26,8 +26,8 @@ def untag(self):


def generate_spectask(taskname):
def spectask(files="", options="", translated=True):
runner = Rubyspecs(files, options, translated=(translated != "False"))
def spectask(files="", options="", untranslated=False):
runner = Rubyspecs(files, options, untranslated=untranslated)
getattr(runner, taskname)()
spectask.__name__ = taskname
return task(spectask)
Expand Down

0 comments on commit c9be93e

Please sign in to comment.