Sha256: 9f9f074cb10508440712b1b101110e665e0ab71411674f2d25473be2a7761456
Contents?: true
Size: 988 Bytes
Versions: 5
Compression:
Stored size: 988 Bytes
Contents
module Evergreen class Suite attr_reader :driver def initialize paths = [ File.expand_path("config/evergreen.rb", root), File.expand_path(".evergreen", root), "#{ENV["HOME"]}/.evergreen" ] paths.each { |path| load(path) if File.exist?(path) } end def root Evergreen.root end def mounted_at Evergreen.mounted_at end def get_spec(name) Spec.new(self, name) end def specs Dir.glob(File.join(root, Evergreen.spec_dir, '**/*_spec.{js,coffee}')).map do |path| Spec.new(self, path.gsub(File.join(root, Evergreen.spec_dir, ''), '')) end end def templates Dir.glob(File.join(root, Evergreen.template_dir, '*')).map do |path| Template.new(self, File.basename(path)) end end def helpers Dir.glob(File.join(root, Evergreen.helper_dir, '*')).map do |path| Helper.new(self, File.basename(path)) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems