tsechingho / chosen-rails

Integrate Chosen javascript library with Rails asset pipeline
https://github.com/tsechingho/chosen-rails
MIT License
524 stars 233 forks source link

chosen-rails/rspec `require': cannot load such file #80

Closed basicBrogrammer closed 8 years ago

basicBrogrammer commented 9 years ago

I tried putting require 'chosen-rails/rspec' in bot the spec_helper and rails_helper. Both gave me the same error

spec/spec_helper.rb:5:in `require': cannot load such file -- chosen-rails/rspec (LoadError)

Please help

rpbaptist commented 9 years ago

I ran into the same problem and that's because this feature is not yet integrated in the latest tag.

I simply copied the contents of the refered file and added the code to spec/support/chosen.rb which I was loading into my test environment already by having this in my rails_helper.rb file: Dir[Rails.root.join("spec/support/**/*.rb")].each { |file| require file }

basicBrogrammer commented 9 years ago

Thanks for pointing that out!

ghost commented 8 years ago

FYI: It's still not included in the latest tag.

basicBrogrammer commented 8 years ago

Thanks BM5k ... I pretty much rewrote it myself as an rspec helper

tsechingho commented 8 years ago

I release 1.5.1, lib/rspec.rb is included now.