Skip to content

Fixed strategy class lookup#681

Merged
botandrose merged 1 commit intoDatabaseCleaner:mainfrom
Alexander-Senko:main
Mar 16, 2021
Merged

Fixed strategy class lookup#681
botandrose merged 1 commit intoDatabaseCleaner:mainfrom
Alexander-Senko:main

Conversation

@Alexander-Senko
Copy link
Copy Markdown
Contributor

Strategy name should be camelized, not capitalized.

Fixes #680.

@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 16, 2021

Codecov Report

Merging #681 (b211cd6) into main (a34c4c3) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##              main      #681   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           19        19           
  Lines          669       674    +5     
=========================================
+ Hits           669       674    +5     
Impacted Files Coverage Δ
lib/database_cleaner/cleaner.rb 100.00% <100.00%> (ø)
spec/database_cleaner/cleaner_spec.rb 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a34c4c3...b211cd6. Read the comment docs.

@botandrose botandrose merged commit a8cfc85 into DatabaseCleaner:main Mar 16, 2021
@botandrose
Copy link
Copy Markdown
Contributor

Great work! Thank you!

leoarnold pushed a commit to leoarnold/database_cleaner that referenced this pull request May 5, 2026
Following up on DatabaseCleaner#681, we also need to camelize strategy names
in the RSpec shared examples for cleaning strategies.

For developer convenience, the methods for string manipulation
were moved from the Cleaner class to a dedicated StringHelper module.
leoarnold pushed a commit to leoarnold/database_cleaner that referenced this pull request May 5, 2026
Following up on DatabaseCleaner#681, we also need to camelize strategy names
in the RSpec shared examples for cleaning strategies.

For developer convenience, the methods for string manipulation
were moved from the Cleaner class to a dedicated StringHelper module.
leoarnold pushed a commit to leoarnold/database_cleaner that referenced this pull request May 5, 2026
Following up on DatabaseCleaner#681, we also need to camelize strategy names
in the RSpec shared examples for cleaning strategies.

For developer convenience, the methods for string manipulation
were moved from the Cleaner class to a dedicated StringHelper module.
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.

Poor strategy class lookup

2 participants