spec/server/component_templates_spec.rb in volt-0.9.5.pre1 vs spec/server/component_templates_spec.rb in volt-0.9.5.pre2
- old
+ new
@@ -3,19 +3,19 @@
require 'spec_helper'
require 'benchmark'
require 'volt/server/component_templates'
describe Volt::ComponentTemplates do
- let(:haml_handler) do
+ let(:haml_handler) do
double(:haml_handler)
end
it 'can be extended' do
- expect( Volt::ComponentTemplates::Handlers.extensions ).to eq([ :html, :email ])
+ expect( Volt::ComponentTemplates::Preprocessors.extensions ).to eq([ :html, :email ])
- Volt::ComponentTemplates.register_template_handler(:haml, haml_handler)
+ Volt::ComponentTemplates.register_template_handler(:haml, haml_handler)
- expect( Volt::ComponentTemplates::Handlers.extensions ).to eq([ :html, :email, :haml ])
+ expect( Volt::ComponentTemplates::Preprocessors.extensions ).to eq([ :html, :email, :haml ])
end
end
end