boot_dir()
click to toggle source
def boot_dir
return nil unless loaded_yaml['boot_dir']
File.join(@pwd, loaded_yaml['boot_dir'])
end
boot_files()
click to toggle source
def boot_files
@path_expander.call(boot_dir, loaded_yaml['boot_files'] || [])
end
css_files()
click to toggle source
def css_files
@path_expander.call(src_dir, loaded_yaml['stylesheets'] || [])
end
helpers()
click to toggle source
def helpers
@path_expander.call(spec_dir, loaded_yaml['helpers'] || [])
end
jasmine_css_files()
click to toggle source
def jasmine_css_files
@path_expander.call(jasmine_dir, loaded_yaml['jasmine_css_files'] || [])
end
jasmine_dir()
click to toggle source
def jasmine_dir
return nil unless loaded_yaml['jasmine_dir']
File.join(@pwd, loaded_yaml['jasmine_dir'])
end
jasmine_files()
click to toggle source
def jasmine_files
@path_expander.call(jasmine_dir, loaded_yaml['jasmine_files'] || [])
end
phantom_config_script()
click to toggle source
def phantom_config_script
return nil unless loaded_yaml['phantom_config_script']
File.join @pwd, loaded_yaml['phantom_config_script']
end
rack_options()
click to toggle source
def rack_options
loaded_yaml.fetch('rack_options', {}).inject({}) do |memo, (key, value)|
memo[key.to_sym] = value
memo
end
end
random()
click to toggle source
def random
loaded_yaml['random'] || false
end
show_console_log()
click to toggle source
def show_console_log
loaded_yaml['show_console_log'] || false
end
spec_dir()
click to toggle source
def spec_dir
return File.join(@pwd, 'spec', 'javascripts') unless loaded_yaml['spec_dir']
File.join(@pwd, loaded_yaml['spec_dir'])
end
spec_files()
click to toggle source
def spec_files
@path_expander.call(spec_dir, loaded_yaml['spec_files'] || [])
end
spec_helper()
click to toggle source
def spec_helper
File.join(@pwd, loaded_yaml['spec_helper'] || File.join('spec', 'javascripts', 'support', 'jasmine_helper.rb'))
end
src_dir()
click to toggle source
def src_dir
return @pwd unless loaded_yaml['src_dir']
File.join(@pwd, loaded_yaml['src_dir'])
end
src_files()
click to toggle source
def src_files
@path_expander.call(src_dir, loaded_yaml['src_files'] || [])
end
stop_spec_on_expectation_failure()
click to toggle source
def stop_spec_on_expectation_failure
loaded_yaml['stop_spec_on_expectation_failure'] || false
end