Skip to content

[Refactor] DRY spec/requests/notes_spec.rb#6927

Merged
compwron merged 2 commits intorubyforgood:mainfrom
yagosansz:refactor_requests-notes-tests-using-shared-examples
May 5, 2026
Merged

[Refactor] DRY spec/requests/notes_spec.rb#6927
compwron merged 2 commits intorubyforgood:mainfrom
yagosansz:refactor_requests-notes-tests-using-shared-examples

Conversation

@yagosansz
Copy link
Copy Markdown
Contributor

@yagosansz yagosansz commented May 3, 2026

What github issue is this PR for, if any?

Resolves #6892

What changed, and why?

I created a shared example for each action (i.e.: CREATE, EDIT, UPDATE, DELETE) so it can be reused across different users (i.e.: admin, supervisor).

How is this tested? (please write rspec and jest tests!) 💖💪

I tested this by running bundle exec rspec ./spec/requests/notes_spec.rb or bundle exec rspec ./spec/requests/notes_spec.rb:<line_number>

Screenshots please :)

Run your local server and take a screenshot of your work! Try to include the URL of the page as well as the contents of the page.

Feelings gif (optional)

What gif best describes your feeling working on this issue?
Cristiano Ronaldo

@github-actions github-actions Bot added 🧪 Tests Tests ruby Touches Ruby code labels May 3, 2026
@compwron compwron merged commit 47d17ca into rubyforgood:main May 5, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ruby Touches Ruby code 🧪 Tests Tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DRY spec/requests/notes_spec.rb

2 participants