aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
Diffstat (limited to 'crates')
-rw-r--r--crates/test_utils/src/lib.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/crates/test_utils/src/lib.rs b/crates/test_utils/src/lib.rs
index e7fa201e9..fc5ae8f07 100644
--- a/crates/test_utils/src/lib.rs
+++ b/crates/test_utils/src/lib.rs
@@ -426,6 +426,12 @@ fn parse_fixture_gets_full_meta() {
426 426
427 let parsed = &parsed[0]; 427 let parsed = &parsed[0];
428 assert_eq!("\n", parsed.text); 428 assert_eq!("\n", parsed.text);
429
430 let meta = &parsed.meta;
431 assert_eq!("foo", meta.crate_name().unwrap());
432 assert_eq!("/lib.rs", meta.path());
433 assert!(meta.cfg_options().is_some());
434 assert_eq!(2, meta.env().count());
429} 435}
430 436
431/// Same as `parse_fixture`, except it allow empty fixture 437/// Same as `parse_fixture`, except it allow empty fixture