Sha256: 5f8cbf712585e5011fc8db5fed420d27f02bb56881ccd65cb6e0c9def9183768

Contents?: true

Size: 392 Bytes

Versions: 3

Compression:

Stored size: 392 Bytes

Contents

require 'rake'

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"
    end

    def spec_files
      FileList["#{spec_path}/**/*_spec.js"]
    end
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
rsutphin-shenandoah-0.1.0 lib/shenandoah/locator.rb
shenandoah-0.1.0 lib/shenandoah/locator.rb
shenandoah-0.0.0 lib/shenandoah/locator.rb