Rails 4和RSpec是路由规范中未定义的方法“断言”

时间:2022-10-13 13:38:10

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?

在路由规范中,我遇到了与未定义方法“断言”类似的问题,但我正在运行Rails 4,它被锁定为minitest 5.0或更高版本。因此用最小值4。7的解决方案我不能做功。这方面有工作吗?我应该在哪里报告错误?

1 个解决方案

#1


10  

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

这个问题是由这里记录的minitest 5.0中的一个更改引起的:

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

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

is fixed by using:

是固定的使用:

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

in the gemfile.

gemfile。

#1


10  

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

这个问题是由这里记录的minitest 5.0中的一个更改引起的:

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

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

is fixed by using:

是固定的使用:

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

in the gemfile.

gemfile。