tests/testthat/test-write.R

context("write")

test_that("can write Makefile", {
  file_path <- tempfile("MakefileR")
  write_makefile(makefile(), file_path)
  expect_identical(readLines(file_path),
                   "# Generated by MakefileR, do not edit by hand")
})
krlmlr/MakefileR documentation built on May 20, 2019, 6:15 p.m.