Class: Jasmine::Runner::Config
- Inherits:
-
Object
- Object
- Jasmine::Runner::Config
- Defined in:
- lib/jasmine/runner/config.rb
Instance Attribute Summary collapse
-
#core_dir ⇒ Object
Dir path where the Jasmine core files can be found.
-
#css_files ⇒ Object
Paths for the Jasmine core CSS files to be included automatically in the reports.
-
#js_files ⇒ Object
Paths for the Jasmine core Javascript files to be included automatically in the reports.
-
#mount ⇒ Object
Returns the value of attribute mount.
-
#mount_at ⇒ Object
Returns the value of attribute mount_at.
-
#phantom_path ⇒ Object
Returns the value of attribute phantom_path.
-
#port ⇒ Object
Server port.
-
#spec_dir ⇒ Object
Dir path where the specs can be found.
-
#spec_files ⇒ Object
Paths for the spec files (tests) to be included automatically in the reports.
-
#src_dir ⇒ Object
Project path.
-
#src_files ⇒ Object
Paths for the Javascript source code to be tested to be included automatically in the reports Paths should be relative to spec_dir.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
19 20 21 22 23 |
# File 'lib/jasmine/runner/config.rb', line 19 def initialize @mount = true @mount_at = 'jasmine' @phantom_path = 'phantomjs' # considered in PATH end |
Instance Attribute Details
#core_dir ⇒ Object
Dir path where the Jasmine core files can be found. This path is added to the Rails assets paths in the initializer.
63 64 65 |
# File 'lib/jasmine/runner/config.rb', line 63 def core_dir @core_dir end |
#css_files ⇒ Object
Paths for the Jasmine core CSS files to be included automatically in the reports. Paths should be relative to core_dir.
38 39 40 |
# File 'lib/jasmine/runner/config.rb', line 38 def css_files @css_files end |
#js_files ⇒ Object
Paths for the Jasmine core Javascript files to be included automatically in the reports. Paths should be relative to core_dir.
32 33 34 |
# File 'lib/jasmine/runner/config.rb', line 32 def js_files @js_files end |
#mount ⇒ Object
Returns the value of attribute mount.
7 8 9 |
# File 'lib/jasmine/runner/config.rb', line 7 def mount @mount end |
#mount_at ⇒ Object
Returns the value of attribute mount_at.
8 9 10 |
# File 'lib/jasmine/runner/config.rb', line 8 def mount_at @mount_at end |
#phantom_path ⇒ Object
Returns the value of attribute phantom_path.
9 10 11 |
# File 'lib/jasmine/runner/config.rb', line 9 def phantom_path @phantom_path end |
#port ⇒ Object
Server port.
26 27 28 |
# File 'lib/jasmine/runner/config.rb', line 26 def port @port end |
#spec_dir ⇒ Object
Dir path where the specs can be found. This path is added to the Rails assets paths in the initializer.
56 57 58 |
# File 'lib/jasmine/runner/config.rb', line 56 def spec_dir @spec_dir end |
#spec_files ⇒ Object
Paths for the spec files (tests) to be included automatically in the reports. Paths should be relative to src_dir.
44 45 46 |
# File 'lib/jasmine/runner/config.rb', line 44 def spec_files @spec_files end |
#src_dir ⇒ Object
Project path.
68 69 70 |
# File 'lib/jasmine/runner/config.rb', line 68 def src_dir @src_dir end |
#src_files ⇒ Object
Paths for the Javascript source code to be tested to be included automatically in the reports Paths should be relative to spec_dir.
50 51 52 |
# File 'lib/jasmine/runner/config.rb', line 50 def src_files @src_files end |