shard-kilt/spec/kilt/temel_spec.cr
Fatih Kadir Akın ba34ef159b Rebase paths and add Temel as template engine
* 'master' of https://github.com/jeromegn/kilt:
  bump 0.3.1
  Move adapter files to src/
2016-02-16 15:33:24 +02:00

18 lines
358 B
Crystal

require "../spec_helper"
require "../../src/temel"
class TemelView
Kilt.file "spec/fixtures/test.temel"
end
describe "kilt/temel" do
it "renders temel" do
Kilt.render("spec/fixtures/test.temel").should eq("<span>#{Process.pid}</span>")
end
it "works with classes" do
TemelView.new.to_s.should eq("<span>#{Process.pid}</span>")
end
end