Skip to content

Commit

Permalink
Failing indentation test
Browse files Browse the repository at this point in the history
  • Loading branch information
defunkt committed May 28, 2010
1 parent 8ff95cc commit 7d3a1b9
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions test/mustache_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -509,5 +509,28 @@ def test_array_of_arrays
9
end
expected
end
def test_indentation
template = <<template
SELECT
{{#cols}}
{{name}},
{{/cols}}
FROM
DUMMY1
template

view = Mustache.new
view[:cols] = [{:name => 'Name'}, {:name => 'Age'}, {:name => 'Weight'}]
view.template = template

assert_equal <<template, view.render
SELECT
Name,
Age,
Weight,
FROM
DUMMY1
template
end
end

0 comments on commit 7d3a1b9

Please sign in to comment.