[Travis CI] Test on Swift 2.2

This commit is contained in:
Kyle Fuller
2016-06-07 09:56:53 -07:00
parent 80427a51e6
commit df650c6b20
11 changed files with 12 additions and 16 deletions

View File

@@ -0,0 +1,17 @@
import Spectre
import Stencil
import PathKit
func testInheritence() {
describe("Inheritence") {
let path = Path(__FILE__) + ".." + "fixtures"
let loader = TemplateLoader(paths: [path])
$0.it("can inherit from another template") {
let context = Context(dictionary: ["loader": loader])
let template = loader.loadTemplate("child.html")
try expect(try template?.render(context)) == "Header\nChild"
}
}
}