Sha256: 1d48be43fd9224b92283819632311ec54da7ebb1ca57bd1f95e25ddd34736cc5
Contents?: true
Size: 723 Bytes
Versions: 6
Compression:
Stored size: 723 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
6 entries across 6 versions & 2 rubygems