Closed nicobrenner closed 2 years ago
Was able to get around it by modifying lib/transpec/file_finder.rb
(~/.rbenv/versions/2.0.0-p647/lib/ruby/gems/2.0.0/gems/transpec-1.0.0/lib/transpec/file_finder.rb
) to skip over paths containing AppleDouble
:
def ruby_files_in_directory(directory_path)
ruby_file_paths = []
Find.find(directory_path) do |path|
next unless path !~ /AppleDouble/ # Files within AppleDouble dirs are excluded
next unless File.file?(path)
next unless File.extname(path) == '.rb'
ruby_file_paths << path
end
ruby_file_paths
end
Leaving it here in case it helps someone else.
Using
transpec 1.0.0
withruby 2.0
on a project that hasrails 3.0.6
andrspec 2.99
.Ran
transpec
with no arguments from the root folder of the rails project.It seems like transpec is trying to process MacOS'
.AppleDouble
hidden files/folders. After adding some additional error messages in the libraries used, I'm getting this:The important part is the end of the first line of the message, which shows the file path:
spec/.AppleDouble/rails_helper.rb
. So it looks liketranspec
is trying to process MacOS'.AppleDouble
hidden files/folders.The file path part comes from these bits of modified code that include the text and the source file in the error: