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

不问归期 提交于 2019-12-01 19:46:26

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/16867707/rails-4-and-rspec-undefined-method-assertions-in-routing-spec

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!