You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
20:39:25 - INFO - Running: test/controllers/orgs_controller_test.rb
rake aborted!
NoMethodError: undefined method `Given' for #<Class:0x007f8899292150>
/home/fred/work/projects/compliancemaster/test/controllers/orgs_controller_test.rb:5:in `block in <top (required)>'
/home/fred/work/projects/compliancemaster/test/controllers/orgs_controller_test.rb:3:in `<top (required)>'
-e:1:in `<main>'
Tasks: TOP => test:single
(See full trace by running task with --trace)
The text was updated successfully, but these errors were encountered:
Ah, in my case it turned out to be because I was using Given/When/Then in it blocks, I had to change them to context as per this Stack Overflow answer.
I'm able to run model tests but not controller tests with minitest-given. Here's a controller test that I feel should be passing:
Here is the terminal output:
The text was updated successfully, but these errors were encountered: