Skip to content

Commit

Permalink
bug in ungroup (fix for dplyr 1.0.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
elbersb committed Apr 2, 2020
1 parent dfc7089 commit 3386f98
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
- autogenerate documentation
- data argument now has same name as in tidyr/dplyr (#43)
- fixes #42
- fixes "ungroup" bug in tests (found by revdep check for dplyr 1.0.0)

# 1.0.0

Expand Down
6 changes: 3 additions & 3 deletions tests/testthat/test_group_by.R
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,16 @@ test_that("group_by: argument order", {

test_that("ungroup", {
expect_message({
out <- tidylog::ungroup(mtcars, mpg)
out <- tidylog::ungroup(mtcars)
})
expect_equal(dplyr::is.grouped_df(out), FALSE)

expect_silent({
out <- dplyr::ungroup(mtcars, mpg)
out <- dplyr::ungroup(mtcars)
})
expect_silent({
options("tidylog.display" = list()) # turn off
out <- tidylog::ungroup(mtcars, mpg)
out <- tidylog::ungroup(mtcars)
})
options("tidylog.display" = NULL) # turn on
})

0 comments on commit 3386f98

Please sign in to comment.