Sha256: 1833680395b4aa8b687154f8323a38c2fee209463f463485993651893bb5ab66
Contents?: true
Size: 425 Bytes
Versions: 2
Compression:
Stored size: 425 Bytes
Contents
# encoding: utf-8 class Nanoc::Filters::CoffeeScriptTest < MiniTest::Unit::TestCase include Nanoc::TestHelpers def test_filter if_have 'coffee-script' do # Create filter filter = ::Nanoc::Filters::CoffeeScript.new # Run filter (no assigns) result = filter.setup_and_run('alert 42') assert_equal("(function() { alert(42); }).call(this); ", result.gsub(/\s+/, ' ')) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nanoc-3.6.1 | test/filters/test_coffeescript.rb |
nanoc-3.6.0 | test/filters/test_coffeescript.rb |