Class: Jasmine::Runner::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/jasmine/runner/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

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_dirObject

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_filesObject

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_filesObject

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

#mountObject

Returns the value of attribute mount.



7
8
9
# File 'lib/jasmine/runner/config.rb', line 7

def mount
  @mount
end

#mount_atObject

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_pathObject

Returns the value of attribute phantom_path.



9
10
11
# File 'lib/jasmine/runner/config.rb', line 9

def phantom_path
  @phantom_path
end

#portObject

Server port.



26
27
28
# File 'lib/jasmine/runner/config.rb', line 26

def port
  @port
end

#spec_dirObject

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_filesObject

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_dirObject

Project path.



68
69
70
# File 'lib/jasmine/runner/config.rb', line 68

def src_dir
  @src_dir
end

#src_filesObject

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