Skip to content

Commit 31566a0

Browse files
committed
fix one more test
1 parent 41f6ee6 commit 31566a0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/testthat/test-qenv_get_code.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,8 @@ testthat::test_that("understands @ usage and do not treat rhs of @ as objects (o
648648
"a@x <- a@x + 2",
649649
"a@x <- x@a"
650650
)
651-
q <- eval_code(qenv(), code)
651+
q <- qenv()
652+
q@code <- code # we don't use eval_code so the code is not run
652653
testthat::expect_identical(
653654
get_code(q, names = "x"),
654655
paste(

0 commit comments

Comments
 (0)