Skip to content

Commit

Permalink
fixes gam test for 1.16
Browse files Browse the repository at this point in the history
  • Loading branch information
nfultz committed Dec 8, 2018
1 parent 06950a3 commit d47acb9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/testthat/test-model.R
Expand Up @@ -243,9 +243,13 @@ test_that("gam", {
des <- pop + declare_estimator(Y ~ Z, model = gam::gam)
if(packageVersion("broom") <= "0.5.0") {
expect_error(draw_estimates(des))
} else {
} else if(packageVersion("gam") < "1.16") {
expect_warning(expect_equal(ncol(draw_estimates(des)), 7))
} else {
expect_equal(ncol(draw_estimates(des)), 7)
}


})

test_that("lfe", {
Expand Down

0 comments on commit d47acb9

Please sign in to comment.