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

Version Path
nanoc-4.4.4 test/filters/test_coffeescript.rb
nanoc-4.4.3 test/filters/test_coffeescript.rb
nanoc-4.4.2 test/filters/test_coffeescript.rb
nanoc-4.4.1 test/filters/test_coffeescript.rb
nanoc-4.4.0 test/filters/test_coffeescript.rb
nanoc-4.3.8 test/filters/test_coffeescript.rb
nanoc-4.3.7 test/filters/test_coffeescript.rb
nanoc-4.3.6 test/filters/test_coffeescript.rb
nanoc-4.3.5 test/filters/test_coffeescript.rb
nanoc-4.3.4 test/filters/test_coffeescript.rb
nanoc-4.3.3 test/filters/test_coffeescript.rb
nanoc-4.3.2 test/filters/test_coffeescript.rb
nanoc-4.3.1 test/filters/test_coffeescript.rb
nanoc-4.3.0 test/filters/test_coffeescript.rb
nanoc-4.2.4 test/filters/test_coffeescript.rb
nanoc-4.2.3 test/filters/test_coffeescript.rb
nanoc-4.2.2 test/filters/test_coffeescript.rb
nanoc-4.2.1 test/filters/test_coffeescript.rb
nanoc-4.2.0 test/filters/test_coffeescript.rb
nanoc-4.1.6 test/filters/test_coffeescript.rb