ocre-cli 0.2.0

Command-line tool for Ocre: create, generate, migrate, run and deploy apps.
1
2
3
4
5
6
7
8
9
10
use std::io::{Error, ErrorKind};

use super::*;

#[test]
fn interrupted_prompts_cancel_and_other_errors_pass_through() {
    assert_eq!(prompt_error(Error::from(ErrorKind::Interrupted)).message, "cancelled");
    let err = prompt_error(Error::new(ErrorKind::BrokenPipe, "terminal closed"));
    assert_eq!((err.message.as_str(), err.hint), ("terminal closed", None));
}