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
-
.application ⇒ Object
Returns the value of attribute application.
-
.driver ⇒ Object
Returns the value of attribute driver.
-
.mounted_at ⇒ Object
Returns the value of attribute mounted_at.
-
.public_dir ⇒ Object
Returns the value of attribute public_dir.
-
.root ⇒ Object
Returns the value of attribute root.
-
.test_dir ⇒ Object
Returns the value of attribute test_dir.
Class Method Summary collapse
- .apply_default_asset_paths! ⇒ Object
- .assets_environment ⇒ Object
- .assets_environment=(env) ⇒ Object
- .configure {|_self| ... } ⇒ Object
- .use_defaults! ⇒ Object
Class Attribute Details
.application ⇒ Object
Returns the value of attribute application.
18 19 20 |
# File 'lib/everqueen.rb', line 18 def application @application end |
.driver ⇒ Object
Returns the value of attribute driver.
18 19 20 |
# File 'lib/everqueen.rb', line 18 def driver @driver end |
.mounted_at ⇒ Object
Returns the value of attribute mounted_at.
18 19 20 |
# File 'lib/everqueen.rb', line 18 def mounted_at @mounted_at end |
.public_dir ⇒ Object
Returns the value of attribute public_dir.
18 19 20 |
# File 'lib/everqueen.rb', line 18 def public_dir @public_dir end |
.root ⇒ Object
Returns the value of attribute root.
18 19 20 |
# File 'lib/everqueen.rb', line 18 def root @root end |
.test_dir ⇒ Object
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.(File.join(File.dirname(__FILE__), 'assets')) qunit_assets_path = File.(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_environment ⇒ Object
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
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 |