Skip to content

Commit 2bec39d

Browse files
committed
another attempt at placating the CI gods
1 parent 3147ace commit 2bec39d

File tree

2 files changed

+60
-64
lines changed

2 files changed

+60
-64
lines changed

tests/testthat/_snaps/guide-old/old-s3-guide-drawing-a-circle.svg

Lines changed: 53 additions & 53 deletions
Loading

tests/testthat/test-guide-old.R

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
skip_on_cran() # This test suite is long-running (on cran) and is skipped
2-
skip("Temporarily disabled for testing CI")
32

43
test_that("old S3 guides can be implemented", {
54
my_env <- env()
@@ -48,19 +47,16 @@ test_that("old S3 guides can be implemented", {
4847
)
4948

5049
withr::local_environment(my_env)
50+
withr::local_options(lifecycle_verbosity = "quiet")
5151

5252
my_guides <- guides(x = guide_circle())
5353
expect_length(my_guides$guides, 1)
5454
expect_s3_class(my_guides$guides[[1]], "guide")
55-
title <- "old S3 guide drawing a circle"
5655

57-
p <- ggplot(mtcars, aes(disp, mpg)) +
58-
geom_point() +
59-
my_guides +
60-
theme_test() +
61-
labs(title = title)
62-
63-
lifecycle::expect_deprecated(gt <- ggplotGrob(p))
64-
65-
expect_doppelganger(title, fig = function() grid.draw(gt))
56+
expect_doppelganger(
57+
"old S3 guide drawing a circle",
58+
ggplot(mtcars, aes(disp, mpg)) +
59+
geom_point() +
60+
my_guides
61+
)
6662
})

0 commit comments

Comments
 (0)