mirror of
https://gitea.invidious.io/iv-org/shard-kilt.git
synced 2024-08-15 00:43:15 +00:00
ba34ef159b
* 'master' of https://github.com/jeromegn/kilt: bump 0.3.1 Move adapter files to src/
18 lines
358 B
Crystal
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
|