Add water

This commit is contained in:
Shootingfly 2019-11-01 23:57:55 +08:00 committed by Jerome Gravel-Niquet
parent d2c3c6b5ba
commit fe1a382088
5 changed files with 26 additions and 0 deletions

1
spec/fixtures/test.water vendored Normal file
View file

@ -0,0 +1 @@
span Process.pid

18
spec/kilt/water_spec.cr Normal file
View file

@ -0,0 +1,18 @@
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