From 80980bce233bbebec78a1b13fdf3113d9eda31bd Mon Sep 17 00:00:00 2001 From: Andy Waite <13400+andyw8@users.noreply.github.com> Date: Tue, 7 Nov 2023 09:31:56 -0500 Subject: [PATCH] Run `yarn build` as part of template test (#173) Co-authored-by: Andy Waite --- test/template_test.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/template_test.rb b/test/template_test.rb index a71004a..234dd1b 100644 --- a/test/template_test.rb +++ b/test/template_test.rb @@ -10,10 +10,15 @@ def teardown end def test_generator_succeeds - output, err = capture_subprocess_io do + output, _err = capture_subprocess_io do system("DISABLE_SPRING=1 SKIP_GIT=1 rails new test_app -m template.rb") end assert_includes output, "Jumpstart app successfully created!" + + output, _err = capture_subprocess_io do + system("cd test_app && yarn build") + end + assert_includes output, "Done in " end # TODO: Fix these tests on CI so they don't fail on db:create