expertiza / reimplementation-back-end

MIT License
1 stars 108 forks source link

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

Open Grochocinski opened 1 week ago

Grochocinski commented 1 week ago

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)

Grochocinski commented 1 week ago

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.