0
0
Fork 0
zero/spec/unit/zero/renderer/type_map_spec.rb

14 lines
391 B
Ruby

require 'spec_helper'
describe Zero::Renderer, '#type_map' do
subject { Zero::Renderer.new(template_path, type_map) }
let(:template_path) { 'foo' }
let(:type_map) { {'html' => ['text/html']} }
its(:type_map) { should be(type_map) }
it 'returns an empty Hash, if type_map is not set while initialization' do
Zero::Renderer.new(template_path).type_map.should eq({})
end
end