Sha256: 3ef37e1f64d86dd928f06a32c6166f0c773b449297eeff756694d7595915e79e

Contents?: true

Size: 543 Bytes

Versions: 21

Compression:

Stored size: 543 Bytes

Contents

if RUBY_PLATFORM == 'opal'
else
  require 'spec_helper'
  require 'benchmark'
  require 'volt/server/component_templates'

  describe Volt::ComponentTemplates do
    let(:haml_handler) do
      double(:haml_handler)
    end

    it 'can be extended' do
      expect( Volt::ComponentTemplates::Preprocessors.extensions ).to eq([ :html, :email ])

      Volt::ComponentTemplates.register_template_handler(:haml, haml_handler)

      expect( Volt::ComponentTemplates::Preprocessors.extensions ).to eq([ :html, :email, :haml ])
    end
  end

end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
volt-0.9.7.pre8 spec/server/component_templates_spec.rb
volt-0.9.7.pre7 spec/server/component_templates_spec.rb
volt-0.9.7.pre6 spec/server/component_templates_spec.rb
volt-0.9.7.pre5 spec/server/component_templates_spec.rb
volt-0.9.7.pre3 spec/server/component_templates_spec.rb
volt-0.9.7.pre2 spec/server/component_templates_spec.rb
volt-0.9.6 spec/server/component_templates_spec.rb
volt-0.9.6.pre3 spec/server/component_templates_spec.rb
volt-0.9.6.pre2 spec/server/component_templates_spec.rb
volt-0.9.6.pre1 spec/server/component_templates_spec.rb
volt-0.9.5 spec/server/component_templates_spec.rb
volt-0.9.5.pre12 spec/server/component_templates_spec.rb
volt-0.9.5.pre11 spec/server/component_templates_spec.rb
volt-0.9.5.pre9 spec/server/component_templates_spec.rb
volt-0.9.5.pre8 spec/server/component_templates_spec.rb
volt-0.9.5.pre7 spec/server/component_templates_spec.rb
volt-0.9.5.pre6 spec/server/component_templates_spec.rb
volt-0.9.5.pre5 spec/server/component_templates_spec.rb
volt-0.9.5.pre4 spec/server/component_templates_spec.rb
volt-0.9.5.pre3 spec/server/component_templates_spec.rb