shard-kilt/spec/kilt/slang_spec.cr

19 lines
358 B
Crystal
Raw Normal View History

require "../spec_helper"
2016-02-16 00:25:33 +00:00
require "../../src/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