Created
July 30, 2020 12:10
-
-
Save bjpcjp/73c9f2048fe174ec335c891815731778 to your computer and use it in GitHub Desktop.
Rails 6.0.2.3 - test failure out-of-the-box
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Rails 6.0.2.3 | |
# 'Behavior' = std Rails scaffold with one name:string attribute. | |
# rails db:migrate = no problem. | |
# rails test = 2 fails below. other controllers (~60, identical except for object name) pass. | |
Error: | |
BehaviorsControllerTest#test_should_destroy_behavior: | |
NoMethodError: undefined method `count' for ActionDispatch::IntegrationTest::Behavior:Module | |
test/controllers/behaviors_controller_test.rb:42:in `block in <class:BehaviorsControllerTest>' | |
test/controllers/behaviors_controller_test.rb:42:in `block in <class:BehaviorsControllerTest>' | |
Error: | |
BehaviorsControllerTest#test_should_create_behavior: | |
NoMethodError: undefined method `count' for ActionDispatch::IntegrationTest::Behavior:Module | |
test/controllers/behaviors_controller_test.rb:19:in `block in <class:BehaviorsControllerTest>' | |
test/controllers/behaviors_controller_test.rb:19:in `block in <class:BehaviorsControllerTest>' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment