Sha256: 756dbf2698d26c78169852737d3f3e188c65f518c9a62897c09172c0a4b44e1d
Contents?: true
Size: 558 Bytes
Versions: 9
Compression:
Stored size: 558 Bytes
Contents
require 'mattock' describe Mattock::TemplateHost do let :template_host do Object.new.tap do |host| host.extend Mattock::TemplateHost def host.test_value; "A test value"; end end end it "should handle relative paths nicely" do Mattock::ValiseManager.rel_dir(__FILE__, "spec").to_s.should =~ /.*spec$/ end it "should be able to do easy templating" do template_host.templates_are_in(Mattock::ValiseManager.default_valise("spec_help")) template_host.render("test.erb").should == "Templated: A test value\n" end end
Version data entries
9 entries across 9 versions & 1 rubygems