Tests faling with "TypeError: superclass mismatch for class FailedExampleNotification"


#1

Hi, I have followed the development guide for installing a development instance and it’s running without errors, but I can’t run the tests. When I run rspec all tests fails with the error:

An error occurred while loading ./spec/workers/digest_mailer_worker_spec.rb.
Failure/Error: require File.expand_path('../../config/environment', __FILE__)

Any idea about what can be causing this?

Here is more info about my issue: Tests faling with "TypeError: superclass mismatch for class FailedExampleNotification" · Issue #9068 · tootsuite/mastodon · GitHub


#2

Try running bundle exec rspec because I think maybe it’s a conflict with something else installed on your system.


#3

Hi @Gargron, thanks for tour answer.

bundle exec rspec

gives me the same errors.


#4

This seems like an issue with your setup. I would recommend deleting the mastodon directory entirely and re-cloning the repo. It could either be an issue with the bootsnap cache or with your gem bundle