Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Commit

Permalink
Resolves #178. Breaks ??? other things.
Browse files Browse the repository at this point in the history
  • Loading branch information
searls committed Sep 10, 2016
1 parent a1f0c64 commit 62f8242
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/jasmine-rails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,9 @@ def each_dir(root, &block)
end

def filter_files(root_dir, patterns)
files = patterns.to_a.collect do |pattern|
patterns.to_a.collect do |pattern|
Dir.glob(root_dir.join(pattern)).sort
end
files = files.flatten
files = files.collect {|f| f.gsub(root_dir.to_s + '/', '') }
files || []
end.flatten
end

private
Expand Down

0 comments on commit 62f8242

Please sign in to comment.