gazay / gon

Your Rails variables in your JS
MIT License
3.05k stars 185 forks source link

NoMethodError: undefined method `create' for ActionDispatch::TestRequest:Class with rails 4 #253

Open pravi opened 6 years ago

pravi commented 6 years ago

This test fails with rails 4 (works with rails 5) even though gemspec says actionpack >= 3.0 as dependency.

actionpack >= 5.0 should be added as a development dependency or it should be made compatible with actionpack 4.0 (ideally for 3.0 as well).

Failures:

  1) threading behaviour is threadsafe
     Failure/Error: @request ||= ActionDispatch::TestRequest.create

     NoMethodError:
       undefined method `create' for ActionDispatch::TestRequest:Class
     # ./spec/gon/thread_spec.rb:5:in `request'
     # ./spec/gon/thread_spec.rb:13:in `execute'
     # ./spec/gon/thread_spec.rb:33:in `block (4 levels) in <top (required)>'

Finished in 0.17894 seconds (files took 1.02 seconds to load)
73 examples, 1 failure