File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change 410
410
; ; select nbb
411
411
(" No project found in current dir, select project type to jack in: "
412
412
" nbb" )
413
- ; ; project src directory, use suggested
414
- (" Project: " initial-input)
413
+ (_ (error " :integration-test-unsupported-prompt-error %S " prompt)))))
414
+ (spy-on 'read-file-name
415
+ :and-call-fake (lambda (prompt &optional dir _default-filename _mustmatch
416
+ _initial _predicate )
417
+ (pcase prompt
418
+ ; ; project src directory
419
+ (" Project: " dir)
415
420
(_ (error " :integration-test-unsupported-prompt-error %S " prompt)))))
416
421
417
422
(with-temp-buffer
471
476
; ; setup empty dir
472
477
(let* ((project-dir temp-dir))
473
478
; ; fake user input
474
- (spy-on 'completing- read
475
- :and-call-fake (lambda (prompt _collection &optional _predicate _require-match
476
- initial-input _hist _def _inherit-input-method )
479
+ (spy-on 'read-file-name
480
+ :and-call-fake (lambda (prompt &optional dir _default-filename _mustmatch
481
+ _initial _predicate )
477
482
(pcase prompt
478
483
; ; project src directory
479
- (" Project: " initial-input )
484
+ (" Project: " dir )
480
485
(_ (error " :integration-test-unsupported-prompt-error %S " prompt)))))
481
486
(with-temp-buffer
482
487
; ; set default directory to temp project
You can’t perform that action at this time.
0 commit comments