Load spec_hhelpers before spec definitions

This commit is contained in:
ragaskar
2009-11-25 08:01:09 -08:00
parent 1c2780d0c1
commit e3585b79f0
7 changed files with 54 additions and 12 deletions

View File

@@ -14,11 +14,11 @@ class JasmineHelper
end
def self.spec_dir
File.expand_path('spec/javascripts')
File.expand_path('spec')
end
def self.spec_files
Dir.glob(File.join(spec_dir, "**/*[Ss]pec.js"))
Dir.glob(File.join(spec_dir, "javascripts/**/*[Ss]pec.js"))
end
def self.specs
@@ -41,7 +41,15 @@ class JasmineHelper
end
def self.meta_spec_path
File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'lib', 'jasmine-ruby', 'jasmine_meta_spec.rb'))
File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'lib', 'jasmine-ruby', 'jasmine_meta_spec.rb'))
end
def self.files
[]
end
def self.stylesheets
[]
end
end