Sha256: 25a3d45b68312887c90738fafe15642bcca82bc50eecba41053723274651fd56
Contents?: true
Size: 365 Bytes
Versions: 39
Compression:
Stored size: 365 Bytes
Contents
class Nanoc::Filters::CoffeeScriptTest < Nanoc::TestCase 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
39 entries across 39 versions & 1 rubygems