Skip to content

Commit 33d7782

Browse files
committed
Use expect_message() on the outside
In prevision of a future testthat release
1 parent 1e0b8d6 commit 33d7782

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/testthat/test-bind.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ test_that("bind_cols repairs names", {
4141
df <- tibble(a = 1, b = 2)
4242
expect_snapshot(bound <- bind_cols(df, df))
4343

44-
repaired <- expect_message(
45-
as_tibble(
44+
expect_message(
45+
repaired <- as_tibble(
4646
data.frame(a = 1, b = 2, a = 1, b = 2, check.names = FALSE),
4747
.name_repair = "unique"
4848
), "New names"
@@ -63,7 +63,7 @@ test_that("bind_cols unpacks tibbles", {
6363
})
6464

6565
test_that("bind_cols() honours .name_repair=", {
66-
res <- expect_message(bind_cols(
66+
expect_message(res <- bind_cols(
6767
data.frame(a = 1), data.frame(a = 2)
6868
))
6969
expect_equal(res, data.frame(a...1 = 1, a...2 = 2))

0 commit comments

Comments
 (0)