Sha256: 44794cb507478ce889b18a42d4aed8ed7d307c7324c77508107b26d22cd58df4

Contents?: true

Size: 379 Bytes

Versions: 6

Compression:

Stored size: 379 Bytes

Contents

require_relative './spec_file'

module Snapdragon
  class SpecDirectory
    def initialize(path)
      @path = path
    end

    def spec_files
      spec_paths = []
      Dir.glob("#{@path}/**/*").each do |path|
        if path =~ /^[\w\/\-\d]+[s|S]pec\.js$/
          spec_paths << Snapdragon::SpecFile.new(path)
        end
      end
      return spec_paths
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
snapdragon-0.1.5 lib/snapdragon/spec_directory.rb
snapdragon-0.1.4 lib/snapdragon/spec_directory.rb
snapdragon-0.1.3 lib/snapdragon/spec_directory.rb
snapdragon-0.1.2 lib/snapdragon/spec_directory.rb
snapdragon-0.1.1 lib/snapdragon/spec_directory.rb
snapdragon-0.1.0 lib/snapdragon/spec_directory.rb