From 97ba0b329b3e23a4d71cb67789195beae62cb198 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Thu, 12 May 2011 07:26:14 -0400 Subject: [PATCH] fix autotest so it can work with changed files --- lib/autotest/jasmine_mixin.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/autotest/jasmine_mixin.rb b/lib/autotest/jasmine_mixin.rb index fb6d079..aea5332 100644 --- a/lib/autotest/jasmine_mixin.rb +++ b/lib/autotest/jasmine_mixin.rb @@ -87,7 +87,8 @@ module JasmineMixin end def make_jasmine_cmd - "#{JASMINE_PROGRAM}" + self.files_to_test.empty? ? '' : + %{#{JASMINE_PROGRAM} #{self.files_to_test.keys.collect { |key| %{'#{key}'} }.join(' ')}}.tap { |o| p o } end def setup_jasmine_project_mappings