Undefined `` assertions '' method in routing specification

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)>'

The only hint I have is that the MiniTest v5 throws a failure warning.

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>'

In a recent Gems update, I started getting the undefined `assertions' method for all my routing specifications. I created a new scaffold, it also raises the same error

Versions:

  • rails (3.2.13)
  • rspec (2.13.0)
  • rspec-core (~> 2.13.0)
  • rspec-wait (~> 2.13.0)
  • rspec-mocks (~> 2.13.0)
  • rspec-rails (2.13.2)
  • minitest (5.0.2)
  • capybara (2.1.0)
  • test stand (0.6.2)
+1
source share
1 answer

It turns out that the smallest gem was the culprit. I blocked the gem version and all routing specifications go through again. Yes!

gem 'minitest', '~> 4.0'

0
source

Source: https://habr.com/ru/post/1483894/


All Articles