使用Cucumber时Rails引擎依赖关系无法正确加载

时间:2016-12-10 10:07:47

标签: ruby-on-rails cucumber asset-pipeline rails-engines

我正在使用从本地磁盘安装引擎的“普通”Rails 5应用程序开发Rails 5引擎(https://github.com/Sento/sento-kanban)。

现在我正在寻找使用Cucumber添加自动化测试,我在运行第一个场景时面临依赖性加载问题,第一步是$ ccucumber Using the default profile... Feature: Create a new board In order to manage my projects As a project manager I want to create a new board Scenario: Try to create a new board without a title # features/boards/create_a_board.feature:6 Given I'm creating a board with an empty title # features/step_definitions/board_steps.rb:1 File to import not found or unreadable: perfect-scrollbar. Load paths: /application/spec/test_app/app/assets/config /application/spec/test_app/app/assets/images /application/spec/test_app/app/assets/javascripts /application/spec/test_app/app/assets/stylesheets /application/app/assets/config /application/app/assets/images /application/app/assets/javascripts /application/app/assets/stylesheets /usr/local/bundle/gems/unobtrusive_flash-3.3.1/lib/assets/javascripts /usr/local/bundle/gems/unobtrusive_flash-3.3.1/lib/assets/stylesheets /usr/local/bundle/gems/pace-rails-0.1.3/vendor/assets/javascripts /usr/local/bundle/gems/pace-rails-0.1.3/vendor/assets/stylesheets /usr/local/bundle/gems/modal-responder-rails-1.0.3/vendor/assets/javascripts /usr/local/bundle/gems/modal-responder-rails-1.0.3/vendor/assets/stylesheets /usr/local/bundle/gems/perfect-scrollbar-rails-0.6.15/vendor/assets/javascripts /usr/local/bundle/gems/perfect-scrollbar-rails-0.6.15/vendor/assets/stylesheets /usr/local/bundle/bundler/gems/dragula-rails-9417236588b6/vendor/assets/javascripts /usr/local/bundle/bundler/gems/dragula-rails-9417236588b6/vendor/assets/stylesheets /usr/local/bundle/gems/actioncable-5.0.0.1/lib/assets/compiled /usr/local/bundle/gems/bootstrap-4.0.0.alpha5/assets/stylesheets /usr/local/bundle/gems/bootstrap-4.0.0.alpha5/assets/javascripts /usr/local/bundle/gems/bootstrap-4.0.0.alpha5/assets/stylesheets (ActionView::Template::Error) ./app/assets/stylesheets/sento/kanban/application.scss:22 ./app/views/layouts/sento/kanban/application.html.slim:11:in `__application_app_views_layouts_sento_kanban_application_html_slim___2646165938008234128_69844567400820' ./features/step_definitions/web_steps.rb:2:in `/^(?:|I )go to (.+)$/' ./features/step_definitions/board_steps.rb:2:in `/^I'm creating a board with an empty title$/' features/boards/create_a_board.feature:7:in `Given I'm creating a board with an empty title' 应用程序的根页面:

style/*

关于路径,我正在使用Docker,将项目挂载为/ application /

似乎未加载引擎依赖项。

甚至最糟糕的是,当我评论需要完美滚动条和所有其他外部库的行时,只保留引擎{{1}}的导入,它也说它找不到这个文件夹。

任何人都可以给我一个方向来解决这个问题吗?

0 个答案:

没有答案