Sha256: 3922cc14f98d4a4089cc15928e8e843d247552338f01228381cfc3e409a3d305
Contents?: true
Size: 715 Bytes
Versions: 2
Compression:
Stored size: 715 Bytes
Contents
require 'shenandoah/locator' module Shenandoah module Rails class Locator < Shenandoah::DefaultLocator 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 private def select_spec_subpath %w(spec examples).each do |candidate| if File.directory?(File.join(RAILS_ROOT, candidate)) return "#{candidate}/javascript" end end "test/javascript" # default end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
shenandoah-0.2.0 | lib/shenandoah/rails/locator.rb |
shenandoah-0.1.3 | lib/shenandoah/rails/locator.rb |