spec/Rakefile in hamlit-1.2.1 vs spec/Rakefile in hamlit-1.3.0

- old
+ new

@@ -8,24 +8,16 @@ spec = <<-SPEC.unindent require "haml" # This is a spec converted by haml-spec. # See: https://github.com/haml/haml-spec - describe "haml #{mode} mode with escape_html" do + describe "haml #{mode} mode with ecape_html" do DEFAULT_OPTIONS = { ugly: true, escape_html: true }.freeze def assert_haml(haml, locals, options) engine = Haml::Engine.new(haml, DEFAULT_OPTIONS.merge(options)) - hamlit = Hamlit::Template.new(suppress_warnings(options)) { haml } + hamlit = Hamlit::Template.new(options) { haml } expect(hamlit.render(Object.new, locals)).to eq(engine.render(Object.new, locals)) - end - - # NOTE: Hamlit only supports escape_html mode. - # Thus the option is not supporeted and prints noisy warnings. - def suppress_warnings(options) - options = options.dup - options.delete(:escape_html) - options end SPEC url = 'https://raw.githubusercontent.com/haml/haml-spec/master/tests.json'