bin/rspactor-system in guillaumegentil-rspactor-0.3.4 vs bin/rspactor-system in guillaumegentil-rspactor-0.4

- old
+ new

@@ -51,15 +51,15 @@ end existing_targets = targets.select { |file| File.exist?(File.join(dir, file)) } else inspector = RSpactor::Inspector.new(dir) - existing_targets = inspector.determine_spec_files(changed_file).map do |file| + existing_targets = inspector.determine_files(changed_file).map do |file| file.sub(dir + '/', '') end end - + if not existing_targets.empty? case existing_targets.first when %r{^test/} $libs << 'test' when %r{^spec/} @@ -75,10 +75,10 @@ command << existing_targets.join(' ') # puts command puts changed_file system command end - + if $?.success? Growl::notify $title, "You rock!", Growl::image_path('success') else Growl::notify $title, "YOU LOSE", Growl::image_path('failed') end \ No newline at end of file