Skip to content

Conversation

@bsbonus
Copy link
Contributor

@bsbonus bsbonus commented May 22, 2025

…s inactive items

Checklist:

X I have performed a self-review of my own code,
X I have commented my code, particularly in hard-to-understand areas,
X I have made corresponding changes to the documentation,
X I have added tests that prove my fix is effective or that my feature works,
X New and existing unit tests pass locally with my changes ("bundle exec rake"),
X Title include "WIP" if work is in progress.
X I acknowledge that I will not force push my branch once reviews have started.

Resolves #5152 - partially, see main thread

Description

Adds missing test coverage to existing export

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Just running rspec.

Copy link
Collaborator

@dorner dorner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor suggestion.

let(:unused_item) { create(:item, name: "Unused Item", organization: organization) }
let(:generated_csv_data) do
# Force unused_item to be created first
unused_item
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be simpler to replace let with let! on line 105, and then you don't have to do this? Same below.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point and yes, that works -- definitely still re-learning Rspec conventions.

@dorner dorner merged commit 5c0283e into rubyforgood:main May 30, 2025
12 checks passed
@dorner
Copy link
Collaborator

dorner commented May 30, 2025

Thanks!

@github-actions
Copy link
Contributor

github-actions bot commented Jun 1, 2025

@bsbonus: Your PR bug-5152 Adds test coverage to transfer export, which already include… is part of today's Human Essentials production release: 2025.06.01.
Thank you very much for your contribution!

GiovannyCordeiro pushed a commit to GiovannyCordeiro/human-essentials that referenced this pull request Jun 6, 2025
rubyforgood#5202)

* bug-5152 Adds test coverage to transfer export, which already includes inactive items

* bug-5152 cleans up rspec file to use let
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.

Exports should show all items - not just the ones that have data in the filtered list

2 participants