Class: Everqueen::Suite

Inherits:
Object
  • Object
show all
Defined in:
lib/everqueen/suite.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeSuite

Returns a new instance of Suite.



5
6
7
8
9
10
11
12
# File 'lib/everqueen/suite.rb', line 5

def initialize
  paths = [
    File.expand_path("config/everqueen.rb", root),
    File.expand_path(".everqueen", root),
    "#{ENV["HOME"]}/.everqueen"
  ]
  paths.each { |path| load(path) if File.exist?(path) }
end

Instance Attribute Details

#driverObject (readonly)

Returns the value of attribute driver.



3
4
5
# File 'lib/everqueen/suite.rb', line 3

def driver
  @driver
end

Instance Method Details

#get_test(name) ⇒ Object



22
23
24
# File 'lib/everqueen/suite.rb', line 22

def get_test(name)
  Test.new(self, name)
end

#mounted_atObject



18
19
20
# File 'lib/everqueen/suite.rb', line 18

def mounted_at
  Everqueen.mounted_at
end

#rootObject



14
15
16
# File 'lib/everqueen/suite.rb', line 14

def root
  Everqueen.root
end

#testsObject



26
27
28
29
30
# File 'lib/everqueen/suite.rb', line 26

def tests
  Dir.glob(File.join(root, Everqueen.test_dir, '**/*_test.{js,coffee,js.coffee,js.erb,coffee.erb,js.coffee.erb}')).map do |path|
    Test.new(self, path.gsub(File.join(root, Everqueen.test_dir, ''), ''))
  end
end