Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails 4 and RSpec, undefined method `assertions' in routing spec

I'm having what appears to be the same issue as undefined method `assertions' in routing spec but I'm running Rails 4 and it is locked to minitest 5.0 or greater. Thus the solution to use minitest 4.7 I can't make work. Is there a work around for this? Where would I report the bug?

like image 210
George Shaw Avatar asked Dec 27 '22 02:12

George Shaw


1 Answers

This problem is caused by a change in minitest 5.0 documented here:

# https://github.com/seattlerb/minitest/issues/286

is fixed by using:

gem "rspec-rails", '~> 2.14.0.rc1'

in the gemfile.

like image 173
George Shaw Avatar answered Jan 31 '23 09:01

George Shaw