lib/shenandoah/locator.rb in shenandoah-0.1.0 vs lib/shenandoah/locator.rb in shenandoah-0.1.1
- old
+ new
@@ -3,15 +3,17 @@
module Shenandoah
class DefaultLocator
attr_accessor :main_path, :spec_path, :tmp_path
def initialize(options = {})
- @main_path = options[:main_path] || "lib"
- @spec_path = options[:spec_path] || "spec"
- @tmp_path = options[:tmp_path] || ENV['TMPDIR'] || "tmp"
+ @main_path = File.expand_path(options[:main_path] || "lib")
+ @spec_path = File.expand_path(options[:spec_path] || "spec")
+ @tmp_path = File.expand_path(options[:tmp_path] || ENV['TMPDIR'] || "tmp")
end
def spec_files
FileList["#{spec_path}/**/*_spec.js"]
end
+
+ private
end
end
\ No newline at end of file