tests/testthat/test_print_cred.R

context("db_credentials - print.cred")

crd <- cred("bob", "passwd", "127.0.0.1", "foo", 3306)

test_that("cred objects print properly", {
    expect_output(print(crd), "db_cred: bob@127.0.0.1:3306/foo")
})

test_that("cred objects print with paswd", {
    expect_output(print(crd), "db_cred: bob@127.0.0.1:3306/foo")
})
acjackman/dbezr documentation built on May 10, 2019, 5:11 a.m.