-
-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgraded from 1.0 to 2.0. #611
Comments
I hope you don't mind but I tidied up the formatting in the issue description.
Can you confirm this means you've upgraded mocha from v1.0 to v2.0? Mocha v1.0 was released in 2014, i.e. 9 years ago! Do you really mean you have upgraded from v1.0 -> v2.0? If so, can you try upgrading to the latest v1.x release first, i.e. v1.16.1. Also I'd recommend upgrading to the latest v2.x release, i.e. v2.0.2, not v2.0.0.
What command generated this ☝️ stack trace? The stack trace suggests mocha's setup is not getting called correctly. Do you have any other test-related gems installed? Can you post your What version of Ruby are you using? |
Also can you try running the tests with the |
yeah. its a 15 year old Rails Project. I'll go back through the minor
versions one by one.
ruby 2.7.2
mocha (1.1.0) was the old version. Now 2.0.
group :test do
gem 'minitest'
gem 'mocha', '1.16.1'
gem 'timecop',
gem 'factory_bot_rails'
gem 'factory_bot'
gem 'loofah'
gem 'ci_reporter_minitest'
gem 'shoulda-context'
gem 'webmock', "2.3.2", require: false
gem 'rails-controller-testing'
end
|
Are there any test |
i saw a post talking about |
OK.. got it working... So basically fixtures being loaded beforehand had some bad data. |
I'm glad you got to the bottom of it! And thanks for letting me know and closing the issue. 😄 |
I also ran into this same error...
And the note from @riniculous about fixtures helped get me on my way. I had been saving cassettes in Moving the cassettes directory out of |
@alexdunae Thanks for reporting this - I've opened #646 to see if we can provide a more useful error message in this scenario. |
Mocha 2.0. minitest '5.10.3'. rails 6.1.
In test helper have
Any ideas?
The text was updated successfully, but these errors were encountered: