Get Problem constructor working again, and copy the helper file from lms.

This commit is contained in:
Jay Zoldak
2012-11-16 13:02:38 -05:00
parent bf6a147c85
commit 718ce4db28
3 changed files with 90 additions and 12 deletions

View File

@@ -97,14 +97,6 @@ def template_jasmine_runner(lib)
js_specs = Dir[spec_glob].sort_by {|p| [p.split('/').length, p]} .map {|f| File.expand_path(f)}
js_source = Dir[src_glob].sort_by {|p| [p.split('/').length, p]} .map {|f| File.expand_path(f)}
# helper file
helper_coffee = "#{REPO_ROOT}/lms/static/coffee/spec/helper.coffee"
if File.exists?(helper_coffee)
sh("coffee -c #{helper_coffee}")
# Add the compiled helper to the beginning of the specs array
js_specs.unshift("#{REPO_ROOT}/lms/static/coffee/spec/helper.js")
end
template = ERB.new(File.read("#{lib}/jasmine_test_runner.html.erb"))
template_output = "#{lib}/jasmine_test_runner.html"
File.open(template_output, 'w') do |f|