mirror of
https://github.com/cobalt-org/cobalt.rs
synced 2024-11-15 08:27:15 +00:00
Rename .config.yml to .cobalt.yml
In the spirit of .travis.yml and Cargo.toml
This commit is contained in:
parent
e586ac6fc0
commit
d4c9c55cd7
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue