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

Remove duplicate donation system spec #4863

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

coalest
Copy link
Collaborator

@coalest coalest commented Dec 16, 2024

Doesn't resolve any issue.

Description

While investigating flaky specs, I noticed what looks like the same spec twice in a row. Look at the spec directly underneath the removed code in this PR (the one titled "Allows User to create a donation with a Miscellaneous source").

I did a diff and the only thing different between them is the spec description in double quotes.

The two specs were commited in 17e818c. I can't figure out what was meant to be tested here so maybe we can just remove it?

Type of change

  • Internal

@dorner
Copy link
Collaborator

dorner commented Dec 18, 2024

Maybe this spec was meant to test one of the other types, like Product Driver or Manufacturer?

@cielf
Copy link
Collaborator

cielf commented Dec 18, 2024

The phrasing is very odd " it "Allows User to create a donation for Purchased Supplies" -- I think the very first iteration of the system only had donations and distributions, which might explain this.

@coalest
Copy link
Collaborator Author

coalest commented Dec 18, 2024

There are already specs in this file for creating donations from all other types of donation sources (product drives, manufacturers, and donation sites).

I don't understand what the wording is trying to say... 🤷

@cielf
Copy link
Collaborator

cielf commented Dec 18, 2024

Here's my theory. That commit is from the very very early days of the project. The system started with donations and distributions. Based on my knowledge of the project, I think someone was working on allowing purchases through donations, didn't carry it through, and it got missed in the review. I do think we can get rid of that one.

@dorner dorner merged commit 1e194f0 into rubyforgood:main Dec 19, 2024
11 checks passed
Copy link
Contributor

@coalest: Your PR Remove duplicate donation system spec is part of today's Human Essentials production release: 2024.12.22.
Thank you very much for your contribution!

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

Successfully merging this pull request may close these issues.

3 participants