Skip to content

Commit 38e4368

Browse files
committed
extra precautions for a test
1 parent 3df4f67 commit 38e4368

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

targets.Rproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
Version: 1.0
2-
ProjectId: ffac8788-8076-4381-bfd3-604097d9a678
32

43
RestoreWorkspace: Default
54
SaveWorkspace: Default

tests/testthat/test-class_builder.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ tar_test("target_run() on a good builder", {
1717
expect_silent(metrics_validate(x$metrics))
1818
expect_silent(value_validate(x$value))
1919
expect_equal(x$value$object, "x")
20+
dir_create(dirname(x$file$stage))
21+
dir_create(dirname(x$file$path))
2022
builder_update_object(x)
2123
expect_true(file.exists(x$file$path))
2224
})

0 commit comments

Comments
 (0)