Skip to content

Commit

Permalink
Install: check presence of packs in frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
Spone committed Jun 7, 2018
1 parent bf25c50 commit 1c67693
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion features/install_generator.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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')]
Expand All @@ -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

0 comments on commit 1c67693

Please sign in to comment.