Skip to content

Commit

Permalink
relativize changed filenames in rspactor-system when using implicit I…
Browse files Browse the repository at this point in the history
…nspector mappings
  • Loading branch information
mislav committed May 15, 2009
1 parent 6a3cd16 commit e743ac0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/rspactor-system
Expand Up @@ -53,7 +53,9 @@ listener = RSpactor::Listener.new do |changed_files|
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)
existing_targets = inspector.determine_spec_files(changed_file).map do |file|
file.sub(dir + '/', '')
end
end

if not existing_targets.empty?
Expand Down

0 comments on commit e743ac0

Please sign in to comment.