Automatically roll up any js files in spec/helpers and add them as spec_helpers

This commit is contained in:
ragaskar
2009-10-31 22:35:35 -07:00
parent fcc1872d48
commit 7c043eb5d0
5 changed files with 16 additions and 5 deletions

View File

@@ -37,6 +37,14 @@ class JasmineHelper
spec_files.collect {|f| f.sub(jasmine_spec_dir, "/spec")}
end
def self.spec_helpers_files
Dir.glob(File.join(jasmine_spec_dir, "helpers/**/*.js"))
end
def self.spec_helpers
spec_helpers_files.collect {|f| f.sub(jasmine_spec_dir, "/spec")}
end
def self.dir_mappings
{
"/spec" => jasmine_spec_dir,