My Rails app consistently passes all tests in the development environment, but my Travis builds keep failing. The source code is at https://github.com/jhsu802701/generic_app_template_rails5/tree/travis .
The test results are at https://travis-ci.org/jhsu802701/generic_app_template_rails5
The parts of the code that fail in Travis are:
- app/views/static_pages/home.html.erb: link_to image_tag at end; ActionView::Template::Error: wrong number of arguments (given 1, expected 0)
- app/views/layouts/application.html.erb: <%= stylesheet_link_tag ‘application’, media: ‘all’, ‘data-turbolinks-track’: ‘reload’ %>; ActionView::Template::Error: wrong number of arguments (given 1, expected 0)
I thought that not having Node installed in Travis was the problem. I finally was able to get Node installed in Travis, but that didn’t resolve the problem.