Closed basicBrogrammer closed 8 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 }
Thanks for pointing that out!
FYI: It's still not included in the latest tag.
Thanks BM5k ... I pretty much rewrote it myself as an rspec helper
I release 1.5.1, lib/rspec.rb
is included now.
I tried putting
require 'chosen-rails/rspec'
in bot the spec_helper and rails_helper. Both gave me the same errorPlease help