mirror of
https://gitea.invidious.io/iv-org/shard-kilt.git
synced 2024-08-15 00:43:15 +00:00
18 lines
363 B
Crystal
18 lines
363 B
Crystal
require "../spec_helper"
|
|
require "../../src/kilt/slang"
|
|
|
|
class SlangView
|
|
Kilt.file "spec/fixtures/test.slang"
|
|
end
|
|
|
|
describe "kilt/slang" do
|
|
|
|
it "renders slang" do
|
|
Kilt.render("spec/fixtures/test.slang").should eq("<span>#{Process.pid}</span>")
|
|
end
|
|
|
|
it "works with classes" do
|
|
SlangView.new.to_s.should eq("<span>#{Process.pid}</span>")
|
|
end
|
|
|
|
end
|