shard-kilt/spec/kilt/temel_spec.cr
2016-02-16 11:49:34 +02:00

18 lines
363 B
Crystal

require "../spec_helper"
require "../../src/kilt/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