Get Problem constructor working again, and copy the helper file from lms.
This commit is contained in:
8
rakefile
8
rakefile
@@ -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|
|
||||
|
||||
Reference in New Issue
Block a user