File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed
Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -366,6 +366,16 @@ mod tests {
366366 }
367367 }
368368
369+ fn path_options ( ) -> Options {
370+ Options {
371+ comments : false ,
372+ prefixes : true ,
373+ examples : true ,
374+ target_dir : "repo/modules/topic/" . to_string ( ) ,
375+ detect_directory : true ,
376+ }
377+ }
378+
369379 #[ test]
370380 fn check_basic_assembly_fields ( ) {
371381 let options = basic_options ( ) ;
@@ -405,4 +415,20 @@ mod tests {
405415 . into ( ) ;
406416 assert_eq ! ( from_new, from_builder) ;
407417 }
418+
419+ #[ test]
420+ fn check_detected_path ( ) {
421+ let options = path_options ( ) ;
422+
423+ let module = Module :: new (
424+ ModuleType :: Procedure ,
425+ "Testing the detected path" ,
426+ & options,
427+ ) ;
428+
429+ assert_eq ! (
430+ module. include_statement,
431+ "include::modules/topic/proc_testing-the-detected-path.adoc[leveloffset=+1]"
432+ ) ;
433+ }
408434}
You can’t perform that action at this time.
0 commit comments