Module: Everqueen

Defined in:
lib/everqueen.rb,
lib/everqueen/cli.rb,
lib/everqueen/test.rb,
lib/everqueen/rails.rb,
lib/everqueen/suite.rb,
lib/everqueen/runner.rb,
lib/everqueen/server.rb,
lib/everqueen/version.rb,
lib/everqueen/application.rb

Defined Under Namespace

Classes: Cli, Railtie, Runner, Server, Suite, Test, TestApplication

Constant Summary collapse

VERSION =
'1.1.1'
Application =
Rack::Builder.app do


  map '/assets' do
    run lambda { |env| Everqueen.assets_environment.call(env) }
  end

  map '/' do
    run TestApplication
  end
end
@@assets_environment =
nil

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.applicationObject

Returns the value of attribute application.



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

def application
  @application
end

.driverObject

Returns the value of attribute driver.



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

def driver
  @driver
end

.mounted_atObject

Returns the value of attribute mounted_at.



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

def mounted_at
  @mounted_at
end

.public_dirObject

Returns the value of attribute public_dir.



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

def public_dir
  @public_dir
end

.rootObject

Returns the value of attribute root.



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

def root
  @root
end

.test_dirObject

Returns the value of attribute test_dir.



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

def test_dir
  @test_dir
end

Class Method Details

.apply_default_asset_paths!Object



42
43
44
45
46
47
48
# File 'lib/everqueen/application.rb', line 42

def self.apply_default_asset_paths!
  assets_path = File.expand_path(File.join(File.dirname(__FILE__), 'assets'))
  qunit_assets_path = File.expand_path(File.join(File.dirname(__FILE__), '..', 'qunit', 'qunit'))
  Everqueen.assets_environment.append_path assets_path
  Everqueen.assets_environment.append_path qunit_assets_path
  true
end

.assets_environmentObject



34
35
36
# File 'lib/everqueen/application.rb', line 34

def self.assets_environment
  @@assets_environment
end

.assets_environment=(env) ⇒ Object



38
39
40
# File 'lib/everqueen/application.rb', line 38

def self.assets_environment=(env)
  @@assets_environment = env
end

.configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (Everqueen)

    the object that the method was called on



20
21
22
# File 'lib/everqueen.rb', line 20

def configure
  yield self
end

.use_defaults!Object



24
25
26
27
28
29
30
31
32
# File 'lib/everqueen.rb', line 24

def use_defaults!
  configure do |config|
    config.application = Everqueen::Application
    config.driver = :selenium
    config.public_dir = 'public'
    config.test_dir = 'test/javascripts'
    config.mounted_at = ""
  end
end