From 1c67693339a05bbec8adc74996b1fa9ff6d60fb6 Mon Sep 17 00:00:00 2001 From: Hans Lemuet Date: Thu, 7 Jun 2018 18:31:26 +0200 Subject: [PATCH] Install: check presence of packs in frontend --- features/install_generator.feature | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/features/install_generator.feature b/features/install_generator.feature index 20026a9..3a8be29 100644 --- a/features/install_generator.feature +++ b/features/install_generator.feature @@ -3,6 +3,12 @@ Feature: Install generator Scenario: Default root path Given I use a fixture named "my_app" When I run `rails generate komponent:install` + Then the following files should exist: + | frontend/packs/application.js | + And the file named "frontend/packs/application.js" should contain: + """ + Hello World from Webpacker + """ And the file named "config/application.rb" should contain: """ config.i18n.load_path += Dir[config.root.join('frontend/components/**/*.yml')] @@ -25,4 +31,3 @@ Feature: Install generator When I run `rails generate komponent:install --stimulus` And I cd to "../.." Then the file named "frontend/stimulus_application.js" should exist -