0
0
zero/spec/unit/zero/renderer/templates_spec.rb
Gibheer 7fd2f6b25b reworked the renderer
The renderer is now a bit smaller and asks the TemplateFinder for the
actual resources. That way it can just concentrate on rendering instead
of finding out, which stuff actually exists and which not.
2013-02-27 22:27:02 +01:00

14 lines
367 B
Ruby

require 'spec_helper'
describe Zero::Renderer, '#templates' do
let(:object) { described_class.new(template_path, types) }
subject { object.templates }
let(:template_path) { 'spec/fixtures/templates/' }
let(:types) { {'html' => ['text/html']} }
it 'loads the template tree' do
expect(subject).to be_kind_of(Zero::Renderer::TemplateFinder)
end
end