Skip to content

Commit

Permalink
Fix typo in tests for galah_select(), but properly this time
Browse files Browse the repository at this point in the history
  • Loading branch information
mjwestgate committed Apr 12, 2024
1 parent 34a60a8 commit 9826367
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions tests/testthat/test-galah_select.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,14 @@ test_that("`galah_select()` triggers error during `compute()` when columns don't
galah_call() |>
identify("perameles") |>
filter(year == 2003) |>
galah_select(basisOfRecord) |>
compute(),
"Can't subset columns that don't exist."
)
galah_select(basisOfRecors) |>
compute())
expect_error(
galah_call() |>
identify("perameles") |>
filter(year == 2003) |>
select(year, basisOfRecord, eventdate) |>
compute(),
"Can't subset columns that don't exist."
)
select(year, basisOfRecors, eventdate) |>
compute())
})

test_that("`galah_select()` returns requested columns", {
Expand Down

0 comments on commit 9826367

Please sign in to comment.