[RMS 2] Tailored Select Generator #12
GitHub Actions / Rspec Test Results
failed
Aug 28, 2024 in 0s
7 tests run, 6 passed, 0 skipped, 1 failed.
Annotations
Check failure on line 19 in spec/generators/rolemodel/tailored_select_generator_spec.rb
github-actions / Rspec Test Results
./spec/generators/rolemodel/tailored_select_generator_spec.rb.Rolemodel::TailoredSelectGenerator adds tailored select to package.json
expected "{\n \"name\": \"app\",\n \"private\": \"true\",\n \"dependencies\": {\n \"@hotwired/stimulus\"...\"^5.1.4\"\n },\n \"scripts\": {\n \"build\": \"webpack --config webpack.config.js\"\n }\n}\n" to include "\"@rolemodel/tailored-select\":"
Diff:
@@ -1,13 +1,25 @@
-"@rolemodel/tailored-select":
+{
+ "name": "app",
+ "private": "true",
+ "dependencies": {
+ "@hotwired/stimulus": "^3.2.1",
+ "@hotwired/turbo-rails": "^7.3.0",
+ "webpack": "^5.87.0",
+ "webpack-cli": "^5.1.4"
+ },
+ "scripts": {
+ "build": "webpack --config webpack.config.js"
+ }
+}
Raw output
Failure/Error: expect(content).to include('"@rolemodel/tailored-select":')
expected "{\n \"name\": \"app\",\n \"private\": \"true\",\n \"dependencies\": {\n \"@hotwired/stimulus\"...\"^5.1.4\"\n },\n \"scripts\": {\n \"build\": \"webpack --config webpack.config.js\"\n }\n}\n" to include "\"@rolemodel/tailored-select\":"
Diff:
@@ -1,13 +1,25 @@
-"@rolemodel/tailored-select":
+{
+ "name": "app",
+ "private": "true",
+ "dependencies": {
+ "@hotwired/stimulus": "^3.2.1",
+ "@hotwired/turbo-rails": "^7.3.0",
+ "webpack": "^5.87.0",
+ "webpack-cli": "^5.1.4"
+ },
+ "scripts": {
+ "build": "webpack --config webpack.config.js"
+ }
+}
./spec/generators/rolemodel/tailored_select_generator_spec.rb:20:in `block (3 levels) in <top (required)>'
./vendor/bundle/ruby/3.2.0/gems/railties-7.2.0/lib/rails/generators/testing/assertions.rb:30:in `block in assert_file'
./vendor/bundle/ruby/3.2.0/gems/activesupport-7.2.0/lib/active_support/testing/assertions.rb:49:in `assert_nothing_raised'
./vendor/bundle/ruby/3.2.0/gems/railties-7.2.0/lib/rails/generators/testing/assertions.rb:30:in `assert_file'
./vendor/bundle/ruby/3.2.0/gems/generator_spec-0.10.0/lib/generator_spec/test_case.rb:37:in `method_missing'
./spec/generators/rolemodel/tailored_select_generator_spec.rb:19:in `block (2 levels) in <top (required)>'
Loading