Class: Shenandoah::Rails::Locator

Inherits:
DefaultLocator show all
Defined in:
lib/shenandoah/rails/locator.rb

Instance Attribute Summary

Attributes inherited from DefaultLocator

#main_path, #spec_path, #tmp_path

Instance Method Summary collapse

Methods inherited from DefaultLocator

#spec_files

Constructor Details

#initialize(options = {}) ⇒ Locator

Returns a new instance of Locator.



6
7
8
9
10
11
12
# File 'lib/shenandoah/rails/locator.rb', line 6

def initialize(options={})
  super(
    :main_path => File.join(RAILS_ROOT, options[:main_path] || "public/javascripts"),
    :spec_path => File.join(RAILS_ROOT, options[:spec_path] || select_spec_subpath),
    :tmp_path =>  File.join(RAILS_ROOT, "tmp/shenandoah")
  )
end