Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: a6fa1475a2
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (15 sloc) 0.556 kb
require 'spec_helper'
describe Zero::Renderer::TemplateFinder, '#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(:path_regex) { should eq(/#{template_path}/) }
its(:type_map) { should be(type_map) }
context 'with broken path' do
let(:template_path) { 'foo' }
it "raises an error" do
expect { subject }.to raise_error(ArgumentError, "Has to end on '/'!")
end
end
end
Jump to Line
Something went wrong with that request. Please try again.