extern crate stache; extern crate tempdir; extern crate yaml_rust; use std::fs::File; use std::io::Read; use std::path::{Path, PathBuf}; use std::process::Command; use stache::{Compile, Statement, Template}; use stache::ruby; use tempdir::TempDir; use yaml_rust::{Yaml, YamlLoader}; #[ignore] #[test] fn ruby() { let build = TempDir::new("stache-build").unwrap(); let source = build.path().join("stache.c"); let script = "./tests/fixtures/test-ruby"; let templates = templates(); let program = ruby::link(&templates).unwrap(); program.write(source).unwrap(); let output = Command::new(script).arg(build.path()).output().unwrap(); if !output.status.success() { let errors = String::from_utf8(output.stderr).unwrap(); panic!(errors); } } /// Parses templates provided by the Mustache specification suite. fn templates() -> Vec