Once ruby-webpacker and ruby-webdrivers clears NEW creating new rails app will work.

Now some tests for the newly created app fails. I think running rails webpacker:install will fix it.

+ rake test
/usr/lib/ruby/vendor_ruby/capybara/selector/filter_set.rb:115: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call /usr/lib/ruby/vendor_ruby/capybara/selector/filters/node_filter.rb:9: warning: The called method `initialize' is defined here /usr/lib/ruby/vendor_ruby/capybara/selector/filter_set.rb:19: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call /usr/lib/ruby/vendor_ruby/capybara/selector/filter_set.rb:111: warning: The called method `add_filter' is defined here /usr/lib/ruby/vendor_ruby/capybara/selector/filter_set.rb:115: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call /usr/lib/ruby/vendor_ruby/capybara/selector/filters/base.rb:7: warning: The called method `initialize' is defined here /usr/lib/ruby/vendor_ruby/capybara/selector/selector.rb:361: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call /usr/lib/ruby/vendor_ruby/capybara/selector/filters/locator_filter.rb:9: warning: The called method `initialize' is defined here /usr/lib/ruby/vendor_ruby/capybara/selector/filters/locator_filter.rb:10: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call /usr/lib/ruby/vendor_ruby/capybara/selector/filters/node_filter.rb:9: warning: The called method `initialize' is defined here DEPRECATION WARNING: Single arity template handlers are deprecated. Template handlers must now accept two parameters, the view object and the source for the view object.
Change:
 >> JbuilderHandler.call(template)
To:
 >> JbuilderHandler.call(template, source)
(called from block (2 levels) in <class:Railtie> at /usr/lib/ruby/vendor_ruby/jbuilder/railtie.rb:8) RAILS_ENV=test environment is not defined in config/webpacker.yml, falling back to production environment /usr/lib/ruby/vendor_ruby/capybara/selector/filter_set.rb:115: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call /usr/lib/ruby/vendor_ruby/capybara/selector/filters/node_filter.rb:9: warning: The called method `initialize' is defined here /usr/lib/ruby/vendor_ruby/capybara/selector/filter_set.rb:19: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call /usr/lib/ruby/vendor_ruby/capybara/selector/filter_set.rb:111: warning: The called method `add_filter' is defined here /usr/lib/ruby/vendor_ruby/capybara/selector/filter_set.rb:115: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call /usr/lib/ruby/vendor_ruby/capybara/selector/filters/base.rb:7: warning: The called method `initialize' is defined here /usr/lib/ruby/vendor_ruby/capybara/selector/selector.rb:361: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call /usr/lib/ruby/vendor_ruby/capybara/selector/filters/locator_filter.rb:9: warning: The called method `initialize' is defined here /usr/lib/ruby/vendor_ruby/capybara/selector/filters/locator_filter.rb:10: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call /usr/lib/ruby/vendor_ruby/capybara/selector/filters/node_filter.rb:9: warning: The called method `initialize' is defined here DEPRECATION WARNING: Single arity template handlers are deprecated. Template handlers must now accept two parameters, the view object and the source for the view object.
Change:
 >> JbuilderHandler.call(template)
To:
 >> JbuilderHandler.call(template, source)
(called from block (2 levels) in <class:Railtie> at /usr/lib/ruby/vendor_ruby/jbuilder/railtie.rb:8) RAILS_ENV=test environment is not defined in config/webpacker.yml, falling back to production environment
Run options: --seed 61677

# Running:

...E

Error:
ProductsControllerTest#test_should_get_edit:
ActionView::Template::Error: Webpacker configuration file not found /tmp/autopkgtest-lxc.60lhwj6z/downtmp/autopkgtest_tmp/foo/config/webpacker.yml. Please run rails webpacker:install Error: No such file or directory @ rb_sysopen - /tmp/autopkgtest-lxc.60lhwj6z/downtmp/autopkgtest_tmp/foo/config/webpacker.yml
   app/views/layouts/application.html.erb:9
test/controllers/products_controller_test.rb:32:in `block in <class:ProductsControllerTest>'

rails test test/controllers/products_controller_test.rb:31

E

Error:
ProductsControllerTest#test_should_get_new:
ActionView::Template::Error: Webpacker configuration file not found /tmp/autopkgtest-lxc.60lhwj6z/downtmp/autopkgtest_tmp/foo/config/webpacker.yml. Please run rails webpacker:install Error: No such file or directory @ rb_sysopen - /tmp/autopkgtest-lxc.60lhwj6z/downtmp/autopkgtest_tmp/foo/config/webpacker.yml
   app/views/layouts/application.html.erb:9
test/controllers/products_controller_test.rb:14:in `block in <class:ProductsControllerTest>'

rails test test/controllers/products_controller_test.rb:13

E

Error:
ProductsControllerTest#test_should_get_index:
ActionView::Template::Error: Webpacker configuration file not found /tmp/autopkgtest-lxc.60lhwj6z/downtmp/autopkgtest_tmp/foo/config/webpacker.yml. Please run rails webpacker:install Error: No such file or directory @ rb_sysopen - /tmp/autopkgtest-lxc.60lhwj6z/downtmp/autopkgtest_tmp/foo/config/webpacker.yml
   app/views/layouts/application.html.erb:9
test/controllers/products_controller_test.rb:9:in `block in <class:ProductsControllerTest>'

rails test test/controllers/products_controller_test.rb:8

E

Error:
ProductsControllerTest#test_should_show_product:
ActionView::Template::Error: Webpacker configuration file not found /tmp/autopkgtest-lxc.60lhwj6z/downtmp/autopkgtest_tmp/foo/config/webpacker.yml. Please run rails webpacker:install Error: No such file or directory @ rb_sysopen - /tmp/autopkgtest-lxc.60lhwj6z/downtmp/autopkgtest_tmp/foo/config/webpacker.yml
   app/views/layouts/application.html.erb:9
test/controllers/products_controller_test.rb:27:in `block in <class:ProductsControllerTest>'

rails test test/controllers/products_controller_test.rb:26



Finished in 0.596654s, 11.7321 runs/s, 8.3801 assertions/s.
7 runs, 5 assertions, 0 failures, 4 errors, 0 skips
autopkgtest [19:51:39]: test newapp: ---------------

Reply via email to