Skip to content
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

[Issue] RSpec Test Suite Errors Out During Test Initialization #127

Open
Grochocinski opened this issue Oct 29, 2024 · 1 comment
Open

Comments

@Grochocinski
Copy link

Problem Description

When I run rspec, it appears to error out before even getting a chance to run the tests. Here is the complete output from my terminal.

Replication Steps

(assuming Docker desktop is already installed)

  • git config --global core.autocrlf false
  • git clone https://github.com/expertiza/reimplementation-back-end.git
  • cd reimplementation-back-end
  • sudo docker compose up
  • (open shell window attached to the app container)
  • rspec
@Grochocinski
Copy link
Author

It appears that going into each /spec/routing/*_spec.rb file and changing the reference to each controller from ControllerName to Api::V1::ControllerName (e.g. CoursesController to Api::V1::CoursesController) fixes this issue.

However, after modifying the 5 problematic files, rebuilding the containers, and rerunning rspec, I'm now seeing the following test results:
284 examples, 263 failures, 5 pending

I'm unsure if those results are related to this fix or if there is a deeper issue with the codebase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant