improve kaptan-spec as a build library and move it to libs dir

Signed-off-by: Onur Özkan <work@onurozkan.dev>
This commit is contained in:
Onur Özkan committed 2026-07-18 14:06:42 +03:00
1 parent 85559bd2d5
commit 8d9790de00
18 files changed
+237 -200

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
#[test]
fn accepts_no_spec_reason() {
let tests = trybuild::TestCases::new();
tests.pass("tests/ui/no_spec.rs");
}
#[test]
fn rejects_invalid_no_spec_invocations() {
let tests = trybuild::TestCases::new();
tests.compile_fail("tests/ui/fail_missing_argument.rs");
tests.compile_fail("tests/ui/fail_non_string_argument.rs");
tests.compile_fail("tests/ui/fail_empty_explanation.rs");
}