Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: a6fa1475a2
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (14 sloc) 0.495 kB
require 'spec_helper'
describe Zero::Renderer, '#read_template_path!' do
subject { Zero::Renderer.new(template_path, type_map) }
let(:template_path) { 'spec/fixtures/templates/' }
let(:type_map) { {'html' => ['text/html']} }
let(:result) { {
'text/html' => template_path + 'index.html.erb',
'json' => template_path + 'index.json.erb'
} }
it "loads the templates" do
subject.read_template_path!
expect(subject.templates['index']).to eq(result)
end
end
Jump to Line
Something went wrong with that request. Please try again.