TestingCreate your own helpers for views in railsKeep your HTML clean; any intensive Ruby code in views is likely misplaced. Inline Ruby in views often scales into maintenance nightmares.Best Practices Views TestingRoland Lopez Roland Lopez12/05/2024 · 2 min readTesting rake tasks in railsRake tasks operate outside the regular Rails environment, making it a challenge to test them in isolation.Best Practices TestingRoland Lopez Roland Lopez06/05/2024 · 2 min readTesting gems and plugins best practices in ruby on railsLack of a dedicated test suite in Rails plugins and gems undermines their reliability and limits their integration into larger applications.Best Practices Testing GemsRoland Lopez Roland Lopez06/05/2024 · 3 min readTesting best practices: behavior over implementation details'Tell, Don't Ask': shigy from querying objects about their state to commanding them what to do. Keep tests clean and focused on behavior rather than implementation details.Best Practices TestingRoland Lopez Roland Lopez06/05/2024 · 1 min readReal consequences of excessive mocking testing in railsFalse Positive, Integration Blind Spots, Integration Blind Spots, Interface Misuse, Refactoring Barriers...Best Practices TestingRoland Lopez Roland Lopez06/05/2024 · 2 min readTesting with fixtures best practices in railsOne of the biggest issues with fixtures is their brittleness.Best Practices TestingRoland Lopez Roland Lopez06/05/2024 · 2 min readMaking Iterative Tests Maintainable with MetaprogrammingScalable and DRY approach to iterative model testing in Rails. Don't loop through arrays to create test cases.Best Practices Testing Models MetaprogrammingRoland Lopez Roland Lopez04/05/2024 · 2 min read