thoughtbot/shoulda-context

undefined method `context' for Test:Class(NoMethodError) while running single test file via bin/rails test

Closed this issue · 0 comments

Thanks for the awesome gem. I'm fairly new to use minitest with rails and I've run into issue as title. After following the installation instruction, everything works fine with the simple rake test command. However, when executing bin/rails test test/models/model_test.rb, NoMethodError is raised.

ruby version: 3.0.3
rails version: 7.0.2
shoulda-context: 2.0.0

Not sure where goes wrong. Thanks in advance!