generated from dxw/rails-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Due to some issues between the rpsec-rails gem and Rails 7, possibly this: rspec/rspec-rails#2773 this spec stops working in Rails 7. To work around this, we move in closer and test the behaviour of the before action itself asserting that the attribute is correct and using it via the User is also correct. We no longer need the `reset_all` calls around every spec as we believe these are being called for us in later version of rspec-rails: rspec/rspec-rails#2752 We no longer need the DummyController as it was likely not actually under test. We take confidence in the other coverage we have that everything is working as expected for this feature.
- Loading branch information
Showing
2 changed files
with
11 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters