Class: JasmineHelper
- Inherits:
-
Object
- Object
- JasmineHelper
- Defined in:
- lib/jasmine/jasmine_helper.rb
Class Method Summary collapse
- .files ⇒ Object
- .jasmine ⇒ Object
- .lib_dir ⇒ Object
- .meta_spec_path ⇒ Object
- .root ⇒ Object
- .spec_dir ⇒ Object
- .spec_files ⇒ Object
- .spec_helpers ⇒ Object
- .spec_helpers_files ⇒ Object
- .specs ⇒ Object
- .stylesheets ⇒ Object
Class Method Details
.files ⇒ Object
40 41 42 |
# File 'lib/jasmine/jasmine_helper.rb', line 40 def self.files [] end |
.jasmine ⇒ Object
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_dir ⇒ Object
2 3 4 |
# File 'lib/jasmine/jasmine_helper.rb', line 2 def self.lib_dir File.(File.join(root, 'lib')) end |
.meta_spec_path ⇒ Object
36 37 38 |
# File 'lib/jasmine/jasmine_helper.rb', line 36 def self. File.(File.join(File.dirname(__FILE__), '..', '..', 'lib', 'jasmine', 'jasmine_meta_spec.rb')) end |
.root ⇒ Object
12 13 14 |
# File 'lib/jasmine/jasmine_helper.rb', line 12 def self.root File.(File.join(File.dirname(__FILE__), '..', '..', 'jasmine')) end |
.spec_dir ⇒ Object
16 17 18 |
# File 'lib/jasmine/jasmine_helper.rb', line 16 def self.spec_dir File.('spec') end |
.spec_files ⇒ Object
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_helpers ⇒ Object
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_files ⇒ Object
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 |
.specs ⇒ Object
24 25 26 |
# File 'lib/jasmine/jasmine_helper.rb', line 24 def self.specs spec_files.collect {|f| f.sub(spec_dir, "/spec")} end |
.stylesheets ⇒ Object
44 45 46 |
# File 'lib/jasmine/jasmine_helper.rb', line 44 def self.stylesheets [] end |