Skip to content

Commit

Permalink
Move specs down into dor_repo directory
Browse files Browse the repository at this point in the history
RSpec/FilePath was complaining about our spec files not matching the
module namespace. This commit pushes the specs into the directory that
RSpec/FilePath and RSpec/SpecFilePathFormat are expecting. It's not
exactly clear what is going on with the rules, but this seems like the
easiest way to not continue dancing around with the errors.

rubocop/rubocop-rspec#1717
  • Loading branch information
edsu committed Sep 25, 2023
1 parent a4f62de commit 6380f9b
Show file tree
Hide file tree
Showing 22 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,6 @@ RSpec/Eq: # new in 2.24
RSpec/MetadataStyle: # new in 2.24
Enabled: true
RSpec/SpecFilePathFormat: # new in 2.24
Enabled: false # NOTE: we made a spec path shorter
Enabled: true
RSpec/SpecFilePathSuffix: # new in 2.24
Enabled: true
38 changes: 19 additions & 19 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,48 +60,48 @@ Metrics/PerceivedComplexity:
# Offense count: 5
RSpec/AnyInstance:
Exclude:
- 'spec/robots/assembly/jp2_create_spec.rb'
- 'spec/robots/dor_repo/assembly/jp2_create_spec.rb'

# Offense count: 4
# Configuration parameters: Max, CountAsOne.
RSpec/ExampleLength:
Exclude:
- 'spec/robots/assembly/checksum_compute_spec.rb'
- 'spec/robots/assembly/exif_collect_spec.rb'
- 'spec/robots/assembly/jp2_create_spec.rb'
- 'spec/robots/dor_repo/assembly/checksum_compute_spec.rb'
- 'spec/robots/dor_repo/assembly/exif_collect_spec.rb'
- 'spec/robots/dor_repo/assembly/jp2_create_spec.rb'

# Offense count: 19
# Configuration parameters: EnforcedStyle.
# SupportedStyles: have_received, receive
RSpec/MessageSpies:
Exclude:
- 'spec/robots/assembly/checksum_compute_spec.rb'
- 'spec/robots/assembly/content_metadata_create_spec.rb'
- 'spec/robots/assembly/exif_collect_spec.rb'
- 'spec/robots/assembly/jp2_create_spec.rb'
- 'spec/robots/release/release_members_spec.rb'
- 'spec/robots/dor_repo/assembly/checksum_compute_spec.rb'
- 'spec/robots/dor_repo/assembly/content_metadata_create_spec.rb'
- 'spec/robots/dor_repo/assembly/exif_collect_spec.rb'
- 'spec/robots/dor_repo/assembly/jp2_create_spec.rb'
- 'spec/robots/dor_repo/release/release_members_spec.rb'

# Offense count: 66
# Configuration parameters: AllowSubject, Max.
RSpec/MultipleMemoizedHelpers:
Exclude:
- 'spec/lib/dor/assembly/content_metadata_from_stub/structural_builder_spec.rb'
- 'spec/lib/preserved_file_uris_spec.rb'
- 'spec/robots/accession/end_accession_spec.rb'
- 'spec/robots/accession/shelve_spec.rb'
- 'spec/robots/accession/technical_metadata_spec.rb'
- 'spec/robots/assembly/accessioning_initiate_spec.rb'
- 'spec/robots/assembly/checksum_compute_spec.rb'
- 'spec/robots/assembly/content_metadata_create_spec.rb'
- 'spec/robots/assembly/exif_collect_spec.rb'
- 'spec/robots/assembly/jp2_create_spec.rb'
- 'spec/robots/release/release_members_spec.rb'
- 'spec/robots/dor_repo/accession/end_accession_spec.rb'
- 'spec/robots/dor_repo/accession/shelve_spec.rb'
- 'spec/robots/dor_repo/accession/technical_metadata_spec.rb'
- 'spec/robots/dor_repo/assembly/accessioning_initiate_spec.rb'
- 'spec/robots/dor_repo/assembly/checksum_compute_spec.rb'
- 'spec/robots/dor_repo/assembly/content_metadata_create_spec.rb'
- 'spec/robots/dor_repo/assembly/exif_collect_spec.rb'
- 'spec/robots/dor_repo/assembly/jp2_create_spec.rb'
- 'spec/robots/dor_repo/release/release_members_spec.rb'

# Offense count: 1
# Configuration parameters: IgnoreNameless, IgnoreSymbolicNames.
RSpec/VerifiedDoubles:
Exclude:
- 'spec/robots/assembly/exif_collect_spec.rb'
- 'spec/robots/dor_repo/assembly/exif_collect_spec.rb'

# Offense count: 11
# Configuration parameters: AllowedConstants.
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 6380f9b

Please sign in to comment.