Class: JasmineHelper

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

Class Method Summary collapse

Class Method Details

.filesObject



40
41
42
# File 'lib/jasmine/jasmine_helper.rb', line 40

def self.files
  []
end

.jasmineObject



6
7
8
9
10
# File 'lib/jasmine/jasmine_helper.rb', line 6

def self.jasmine
  ['/lib/' + File.basename(Dir.glob("#{JasmineHelper.lib_dir}/jasmine*.js").first)] +
    ['/lib/json2.js',
     '/lib/TrivialReporter.js']
end

.lib_dirObject



2
3
4
# File 'lib/jasmine/jasmine_helper.rb', line 2

def self.lib_dir
  File.expand_path(File.join(root, 'lib'))
end

.meta_spec_pathObject



36
37
38
# File 'lib/jasmine/jasmine_helper.rb', line 36

def self.meta_spec_path
  File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'lib', 'jasmine', 'jasmine_meta_spec.rb'))
end

.rootObject



12
13
14
# File 'lib/jasmine/jasmine_helper.rb', line 12

def self.root
  File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'jasmine'))
end

.spec_dirObject



16
17
18
# File 'lib/jasmine/jasmine_helper.rb', line 16

def self.spec_dir
  File.expand_path('spec')
end

.spec_filesObject



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

def self.spec_files
  Dir.glob(File.join(spec_dir, "javascripts/**/*[Ss]pec.js"))
end

.spec_helpersObject



32
33
34
# File 'lib/jasmine/jasmine_helper.rb', line 32

def self.spec_helpers
  spec_helpers_files.collect {|f| f.sub(spec_dir, "/spec")}
end

.spec_helpers_filesObject



28
29
30
# File 'lib/jasmine/jasmine_helper.rb', line 28

def self.spec_helpers_files
  Dir.glob(File.join(spec_dir, "helpers/**/*.js"))
end

.specsObject



24
25
26
# File 'lib/jasmine/jasmine_helper.rb', line 24

def self.specs
  spec_files.collect {|f| f.sub(spec_dir, "/spec")}
end

.stylesheetsObject



44
45
46
# File 'lib/jasmine/jasmine_helper.rb', line 44

def self.stylesheets
  []
end