Skip to content

Commit

Permalink
Ensure tests work with CRAN rlang
Browse files Browse the repository at this point in the history
  • Loading branch information
hadley committed Oct 5, 2021
1 parent c3693dc commit 4e0608d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
4 changes: 1 addition & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Imports:
ellipsis,
glue,
lifecycle,
rlang (>= 0.4.11.9001),
rlang,
tibble,
tidyselect,
vctrs
Expand All @@ -47,5 +47,3 @@ Encoding: UTF-8
Roxygen: {library(tidyr); list(markdown = TRUE)}
RoxygenNote: 7.1.2
Config/testthat/edition: 3
Remotes:
r-lib/rlang
1 change: 1 addition & 0 deletions tests/testthat/test-step-subset-select.R
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ test_that("empty select returns no columns", {
)

# unless it's grouped
skip_if(utils::packageVersion("rlang") < "0.5.0")
expect_snapshot(out <- lz %>% group_by(x) %>% select())
expect_equal(
out %>% collect(),
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test-step-subset-summarise.R
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ test_that("summarise(.groups=)", {
expr(lazy_dt(data.frame(x = 1, y = 2), "DT") %>% group_by(x, y) %>% dplyr::summarise() %>% show_query()),
env(global_env())
))
skip_if(utils::packageVersion("rlang") < "0.5.0")
expect_snapshot(eval_bare(
expr(lazy_dt(data.frame(x = 1, y = 2), "DT") %>% group_by(x, y) %>% dplyr::summarise() %>% show_query()),
env(global_env())
Expand Down

0 comments on commit 4e0608d

Please sign in to comment.