nushell/tests/command_clip_tests.rs
Andrés N. Robalino 1b7dd52713 Tests pass.
2019-08-07 13:23:02 -05:00

20 lines
No EOL
365 B
Rust

mod helpers;
use helpers::in_directory as cwd;
use clipboard::{ClipboardProvider, ClipboardContext};
#[test]
fn clip() {
let mut ctx: ClipboardContext = ClipboardProvider::new().unwrap();
nu!(
_output,
cwd("tests/fixtures/formats"),
"open caco3_plastics.csv --raw | lines | clip"
);
assert!(ctx.get_contents().is_ok());
}