should fix red build

This commit is contained in:
Davis W. Frank
2011-06-16 08:33:59 -07:00
parent ae24e00c0f
commit 75dd391d57
4 changed files with 8 additions and 10 deletions

View File

@@ -41,7 +41,8 @@ end
def script_tags_for(files)
script_tag = Tilt::new('spec/templates/script_tag.html.erb')
files.inject([]) do |tags, f|
srcs = (files.is_a?(String) ? [files] : files)
srcs.inject([]) do |tags, f|
scope = OpenStruct.new :file => f
tags << script_tag.render(scope)
tags