Add support for Swift 3.0
This commit is contained in:
14
Tests/StencilTests/TemplateSpec.swift
Normal file
14
Tests/StencilTests/TemplateSpec.swift
Normal file
@@ -0,0 +1,14 @@
|
||||
import Spectre
|
||||
import Stencil
|
||||
|
||||
|
||||
func testTemplate() {
|
||||
describe("Template") {
|
||||
$0.it("can render a template from a string") {
|
||||
let context = Context(dictionary: [ "name": "Kyle" ])
|
||||
let template = Template(templateString: "Hello World")
|
||||
let result = try template.render(context)
|
||||
try expect(result) == "Hello World"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user