added init task

This commit is contained in:
ragaskar
2009-10-30 23:06:00 -07:00
parent 546604fdc8
commit 391c42533f
3 changed files with 27 additions and 8 deletions

View File

@@ -22,10 +22,10 @@ class JasmineHelper
end
def self.jasmine_spec_dir
if defined? JASMINE_SPEC_DIR
File.expand_path(File.join(JASMINE_SPEC_DIR))
else
if defined? rails_root
File.expand_path(File.join(rails_root, "spec", "javascript"))
else
File.expand_path('spec')
end
end