Skip to content
This repository has been archived by the owner on Feb 4, 2022. It is now read-only.

Commit

Permalink
explicitly simplify test input
Browse files Browse the repository at this point in the history
dplyr went from 0.4.1 to 0.4.2 and bind_cols() now returns tbl_df --> the ws component of googlesheet objects is now a tbl_df --> must use `[[` to explicitly simplify and get single element for this comparison
  • Loading branch information
jennybc committed Jun 19, 2015
1 parent d839768 commit eafe3ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/testthat/test-ws-edits.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ test_that("Add a new worksheet", {

new_ws_index <- ss_before$n_ws + 1
expect_equal(new_ws_index, ss_after$n_ws)
expect_equal(ss_after$ws[new_ws_index, "row_extent"], 7L)
expect_equal(ss_after$ws[new_ws_index, "col_extent"], 5L)
expect_equal(ss_after$ws[new_ws_index, "ws_title"], "Test Sheet")
expect_equal(ss_after$ws[[new_ws_index, "row_extent"]], 7L)
expect_equal(ss_after$ws[[new_ws_index, "col_extent"]], 5L)
expect_equal(ss_after$ws[[new_ws_index, "ws_title"]], "Test Sheet")

## this worksheet gets deleted below

Expand Down

0 comments on commit eafe3ee

Please sign in to comment.