![Gibheer](/assets/img/avatar_default.png)
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.
12 lines
335 B
Ruby
12 lines
335 B
Ruby
require 'spec_helper'
|
|
|
|
describe Zero::Renderer, '#initialize' do
|
|
subject { described_class.new(template_path, type_map) }
|
|
let(:template_path) { 'foo/' }
|
|
let(:type_map) { {'html' => ['text/html'] } }
|
|
|
|
its(:path) { should be(template_path) }
|
|
its(:layout) { should match(/layout/) }
|
|
its(:types) { should be(type_map) }
|
|
end
|