spec/stache/mustache/handler_spec.rb in stache-1.0.3 vs spec/stache/mustache/handler_spec.rb in stache-1.1.0

- old
+ new

@@ -1,13 +1,13 @@ require 'spec_helper' describe Stache::Mustache::Handler do # ERBHandler = ActionView::Template::Handlers::ERB.new # def new_template(body = "<%= hello %>", details = {}) - # ActionView::Template.new(body, "hello template", ERBHandler, {:virtual_path => "hello"}.merge!(details)) + # ActionView::Template.new(body, "hello template", ERBHandler, {virtual_path: "hello"}.merge!(details)) # end before do - @template = ActionView::Template.new("{{body}}", "hello mustache", Stache::Mustache::Handler, { :virtual_path => "hello_world"}) + @template = ActionView::Template.new("{{body}}", "hello mustache", Stache::Mustache::Handler, { virtual_path: "hello_world"}) @handler = Stache::Mustache::Handler.new end describe "#mustache_class_from_template" do it "returns the appropriate mustache class" do