diff --git a/lib/jasmine-rails.rb b/lib/jasmine-rails.rb index e603653..0622d0a 100644 --- a/lib/jasmine-rails.rb +++ b/lib/jasmine-rails.rb @@ -23,7 +23,7 @@ def route_path def spec_dir paths = jasmine_config['spec_dir'] || 'spec/javascripts' - [paths].flatten.map { |path| Dir.glob path }.flatten.collect { |path| Rails.root.join(path) } + [paths].flatten.map { |path| Dir.glob(Rails.root.join(path)) }.flatten.collect { |path| Rails.root.join(path) } end def include_dir