test/fixtures/delimiters.rb in mustache-0.7.0 vs test/fixtures/delimiters.rb in mustache-0.9.0
- old
+ new
@@ -2,19 +2,20 @@
require 'mustache'
class Delimiters < Mustache
self.path = File.dirname(__FILE__)
- def first
+ def start
"It worked the first time."
end
- def second
- "And it worked the second time."
+ def middle
+ [ { :item => "And it worked the second time." },
+ { :item => "As well as the third." } ]
end
- def third
- "Then, surprisingly, it worked the third time."
+ def final
+ "Then, surprisingly, it worked the final time."
end
end
if $0 == __FILE__
puts Delimiters.to_html