1) JunksController routing routes to #index
Failure/Error: get("/junks").should route_to("junks#index")
NoMethodError:
undefined method `assertions' for #<#<Class:0x007ff8d62c8568>:0x007ff8d13e2f20>
# ./spec/routing/junks_routing_spec.rb:7:in `block (3 levels) in <top (required)>'
我唯一的提示是MiniTest v5正在抛弃弃用警告。
MiniTest::Unit::TestCase is now Minitest::Test. From /Users/username/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/test/unit/testcase.rb:8:in `<module:Unit>'
在最近的Gems更新中,我开始为我的所有路由规范获取一个未定义的方法`assertions'。我生成了一个新的脚手架,它也引发了同样的错误
版本:
答案 0 :(得分:0)
事实证明Minitest宝石是罪魁祸首。我锁定了宝石的版本,所有路由规范都再次通过。是啊!
gem 'minitest', '~> 4.0'