Sha256: 3a529f289510eca275f798198fc82b4cb4ddd39faf52c4ae51dea5e177c49dc3
Contents?: true
Size: 406 Bytes
Versions: 22
Compression:
Stored size: 406 Bytes
Contents
require 'helper' class Nanoc::Filters::CoffeeScriptTest < Nanoc::TestCase def test_filter skip_v8_on_ruby24 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
22 entries across 22 versions & 1 rubygems
Version | Path |
---|---|
nanoc-4.4.7 | test/filters/test_coffeescript.rb |
nanoc-4.4.6 | test/filters/test_coffeescript.rb |