Closed wonderphil closed 5 years ago
Hi guys,
Running rails 5.1.6, have the gem installed through my gem file and every time I run my rspec tests through Guard i get the following error:
Failure/Error: //= link_directory ../javascripts .js ActionView::Template::Error: couldn't find file 'chosen-jquery' with type 'application/javascript' Checked in these paths: /Users/pdavies/repos/myfitness/app/assets/config /Users/pdavies/repos/myfitness/app/assets/fonts /Users/pdavies/repos/myfitness/app/assets/images /Users/pdavies/repos/myfitness/app/assets/javascripts /Users/pdavies/repos/myfitness/app/assets/stylesheets /Users/pdavies/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/toastr-rails-1.0.3/vendor/assets/javascripts /Users/pdavies/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/toastr-rails-1.0.3/vendor/assets/stylesheets /Users/pdavies/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootstrap_form-2.7.0/app/assets/stylesheets /Users/pdavies/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/jquery-easing-rails-0.0.2/vendor/assets/javascripts /Users/pdavies/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/jquery-migrate-rails-1.2.1/vendor/assets/javascripts /Users/pdavies/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts /Users/pdavies/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/rails_admin-1.3.0/app/assets/images /Users/pdavies/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/rails_admin-1.3.0/app/assets/javascripts /Users/pdavies/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/rails_admin-1.3.0/app/assets/stylesheets /Users/pdavies/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/rails_admin-1.3.0/vendor/assets/javascripts /Users/pdavies/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/rails_admin-1.3.0/vendor/assets/stylesheets /Users/pdavies/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/remotipart-1.4.0/vendor/assets/javascripts /Users/pdavies/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/nested_form-0.3.2/vendor/assets/javascripts /Users/pdavies/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/jquery-ui-rails-5.0.5/app/assets/images /Users/pdavies/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/jquery-ui-rails-5.0.5/app/assets/javascripts /Users/pdavies/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/jquery-ui-rails-5.0.5/app/assets/stylesheets /Users/pdavies/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/jquery-rails-4.3.3/vendor/assets/javascripts /Users/pdavies/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/font-awesome-rails-4.7.0.4/app/assets/fonts /Users/pdavies/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/font-awesome-rails-4.7.0.4/app/assets/stylesheets /Users/pdavies/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/cocoon-1.2.11/app/assets/javascripts /Users/pdavies/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/actioncable-5.1.6/lib/assets/compiled /Users/pdavies/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/actionview-5.1.6/lib/assets/compiled /Users/pdavies/repos/myfitness/node_modules /Users/pdavies/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/popper_js-1.12.9/assets/javascripts /Users/pdavies/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootstrap-4.0.0/assets/stylesheets /Users/pdavies/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootstrap-4.0.0/assets/javascripts # ./app/assets/config/manifest.js:2 # ./app/assets/javascripts/application.js:16 # ./app/views/trainers/registrations/new.html.erb:90:in `_app_views_trainers_registrations_new_html_erb__2330774029745385685_70135416652720' # ./spec/support/features/session_helpers.rb:4:in `trainer_sign_up_with' # ./spec/features/visitors/sign_up_spec.rb:12:in `block (2 levels) in <top (required)>' # -e:1:in `<main>' # ------------------ # --- Caused by: --- # Sprockets::FileNotFound: # couldn't find file 'chosen-jquery' with type 'application/javascript' # Checked in these paths: ......
Gem versions: chosen-rails (1.8.3) guard-rspec (4.7.3) guard (~> 2.1) guard-compat (~> 1.1) rspec (>= 2.99.0, < 4.0) rspec (3.7.0)
And I have followed the steps in issue 80 (https://github.com/tsechingho/chosen-rails/issues/80)
If i go to the page browser it all works. Anyone able able to point me in the right idea?
Thanks
Hi guys,
Running rails 5.1.6, have the gem installed through my gem file and every time I run my rspec tests through Guard i get the following error:
Gem versions: chosen-rails (1.8.3) guard-rspec (4.7.3) guard (~> 2.1) guard-compat (~> 1.1) rspec (>= 2.99.0, < 4.0) rspec (3.7.0)
And I have followed the steps in issue 80 (https://github.com/tsechingho/chosen-rails/issues/80)
If i go to the page browser it all works. Anyone able able to point me in the right idea?
Thanks