Rename .config.yml to .cobalt.yml

In the spirit of .travis.yml and Cargo.toml
This commit is contained in:
Johann 2015-12-30 16:19:51 +01:00
parent e586ac6fc0
commit d4c9c55cd7
2 changed files with 2 additions and 2 deletions

View file

@ -55,7 +55,7 @@ fn main() {
} }
// Fetch config information if available // Fetch config information if available
let config_contents_result = get_config_contents("./.config.yml"); let config_contents_result = get_config_contents("./.cobalt.yml");
let yaml = if let Ok(config_contents) = config_contents_result { let yaml = if let Ok(config_contents) = config_contents_result {
match parse_yaml(config_contents) { match parse_yaml(config_contents) {
Ok(y) => { Ok(y) => {
@ -133,7 +133,7 @@ fn parse_yaml(file_contents: String) -> Result<Yaml, ScanError> {
#[test] #[test]
fn get_config_contents_ok() { fn get_config_contents_ok() {
let result = get_config_contents("tests/fixtures/config_example/.config.yml"); let result = get_config_contents("tests/fixtures/config_example/.cobalt.yml");
assert!(result.is_ok()); assert!(result.is_ok());
assert!(result.unwrap().len() != 0); assert!(result.unwrap().len() != 0);
} }