test_that("og_create works", { expect_equal( og_create( title = 'Process the Open Graph Protocol', type = 'website', image = 'http://christophertkenny.com/opengraph/logo.png', url = 'https://christophertkenny.com/opengraph/', description = 'Parse metadata on websites which use the Open Graph Protocol.' ), c("", "", "", "", "" ) ) expect_error(og_create(), '`title` is required.') expect_error(og_create(title = 'foo'), '`type` is required.') expect_error(og_create(title = 'foo', type = 'bar'), '`image` is required.') expect_error(og_create(title = 'foo', type = 'bar', image = 'img'), '`url` is required.') })