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