smoke test

This commit is contained in:
vsrs 2020-05-16 16:56:41 +03:00
parent 2c00bd8c6a
commit 7e9c7ac4ee

View file

@ -426,6 +426,12 @@ fn parse_fixture_gets_full_meta() {
let parsed = &parsed[0];
assert_eq!("\n", parsed.text);
let meta = &parsed.meta;
assert_eq!("foo", meta.crate_name().unwrap());
assert_eq!("/lib.rs", meta.path());
assert!(meta.cfg_options().is_some());
assert_eq!(2, meta.env().count());
}
/// Same as `parse_fixture`, except it allow empty fixture