Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Crisci committed Nov 21, 2018
1 parent 9659a6a commit 4a2d2ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/theme.rs
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,6 @@ mod tests {
assert_eq!(theme.description.unwrap(), "AUTOMATICALLY GENERATED THEME");

let wc = theme.window_colors.unwrap();
let bc = theme.bar_colors.unwrap();

let group = wc.focused.unwrap();
assert_eq!(group.border, Some("#859900".to_string()));
Expand Down
3 changes: 2 additions & 1 deletion src/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,7 @@ pub fn write_config_from_reader(input: BufReader<File>, output: Option<&String>,
#[cfg(test)]
mod tests {
use super::*;
use theme::from_yaml;

extern crate tempfile;
extern crate yaml_rust;
Expand All @@ -496,7 +497,7 @@ mod tests {
fn get_file_contents(path: &String) -> String {
let mut file = File::open(path).expect("could not open file");
let mut contents = String::new();
file.read_to_string(&mut contents);
file.read_to_string(&mut contents).unwrap();
contents
}

Expand Down

0 comments on commit 4a2d2ba

Please sign in to comment.