Sha256: 8d542e978122ed1ef1538ef5a3b27377bbd232524728b7dacddba0f5a38e3761

Contents?: true

Size: 535 Bytes

Versions: 13

Compression:

Stored size: 535 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::Handlers.extensions ).to eq([ :html, :email ])

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

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

end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
volt-0.9.5.pre1 spec/server/component_templates_spec.rb
volt-0.9.4 spec/server/component_templates_spec.rb
volt-0.9.4.pre5 spec/server/component_templates_spec.rb
volt-0.9.4.pre3 spec/server/component_templates_spec.rb
volt-0.9.4.pre2 spec/server/component_templates_spec.rb
volt-0.9.4.pre1 spec/server/component_templates_spec.rb
volt-0.9.3 spec/server/component_templates_spec.rb
volt-0.9.3.pre6 spec/server/component_templates_spec.rb
volt-0.9.3.pre5 spec/server/component_templates_spec.rb
volt-0.9.3.pre4 spec/server/component_templates_spec.rb
volt-0.9.3.pre3 spec/server/component_templates_spec.rb
volt-0.9.3.pre2 spec/server/component_templates_spec.rb
volt-0.9.3.pre1 spec/server/component_templates_spec.rb