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 useless test #6688

Merged
merged 1 commit into from Feb 8, 2024
Merged

✂ Remove useless test #6688

merged 1 commit into from Feb 8, 2024

Conversation

jeremyf
Copy link
Contributor

@jeremyf jeremyf commented Feb 8, 2024

Nowhere in the code, aside from what we're removing, does the phrase "Test Private Document" show up. Also, there's no setup for this test, meaning we aren't creating documents and were likely once upon a time relying on another spec to run and not clean itself up.

It was 1743c7b569b3 that removed any creation of documents.

Below is a Ripgrep search looking for any possible matches:

❯ rg "Test.*Document" -i spec
spec/controllers/hyrax/generic_works_controller_spec.rb
13:  describe 'integration test for suppressed documents' do
31:  describe 'integration test for depositor of a suppressed documents without a workflow role' do

spec/controllers/hyrax/file_sets_controller_spec.rb
507:    describe 'integration test for suppressed documents' do
937:    describe 'integration test for suppressed documents' do

spec/features/browse_dashboard_works_spec.rb
19:                               title: ["Test Document MP3"],
60:      expect(page).to have_link("Display all details of Test Document MP3",

@samvera/hyrax-code-reviewers

Nowhere in the code, aside from what we're removing, does the phrase
`"Test Private Document"` show up.  Also, there's no setup for this
test, meaning we aren't creating documents and were likely once upon a
time relying on another spec to run and not clean itself up.

It was [1743c7b][1] that removed any creation of documents.

Below is a Ripgrep search looking for any possible matches:

```
❯ rg "Test.*Document" -i spec
spec/controllers/hyrax/generic_works_controller_spec.rb
13:  describe 'integration test for suppressed documents' do
31:  describe 'integration test for depositor of a suppressed documents without a workflow role' do

spec/controllers/hyrax/file_sets_controller_spec.rb
507:    describe 'integration test for suppressed documents' do
937:    describe 'integration test for suppressed documents' do

spec/features/browse_dashboard_works_spec.rb
19:                               title: ["Test Document MP3"],
60:      expect(page).to have_link("Display all details of Test Document MP3",
```

[1]: 1743c7b569b3#diff-85199f339ea08f1dcaa588f9d29c68cd1209956fef816a8e1c92221bd0f6af45L9
@jeremyf jeremyf added the notes-tests Release Notes: Spec or CI changes label Feb 8, 2024
Copy link
Contributor

@dlpierce dlpierce left a comment

Choose a reason for hiding this comment

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

Looks like it was removed in 65e4ea4

@dlpierce dlpierce merged commit 1e1dda0 into main Feb 8, 2024
6 checks passed
@dlpierce dlpierce deleted the cut-test-that-is-flaky-and-wring branch February 8, 2024 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
notes-tests Release Notes: Spec or CI changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants