You are previewing Rails™ AntiPatterns: Best Practice Ruby on Rails™ Refactoring.

Rails™ AntiPatterns: Best Practice Ruby on Rails™ Refactoring

Cover of Rails™ AntiPatterns: Best Practice Ruby on Rails™ Refactoring by Tammer Saleh... Published by Addison-Wesley Professional
O'Reilly logo

Chapter 7. Testing

One of the strengths of the Ruby on Rails platform is that it gives you a solid testing infrastructure as part of your base project. Because of this, and because of the agile nature of most Ruby on Rails development shops, the community has rallied behind test-driven development (TDD) and behavior-driven development (BDD) with a passion unheard of in other programming circles.

TDD and BDD didn’t actually begin with the Rails culture; they were around long before Ruby on Rails emerged. TDD and BDD arguably started with Kent Beck’s publication “Simple Smalltalk Testing: With Patterns,” and in general they have their roots in the test-first philosophy espoused by the Extreme Programming movement.

Ruby on Rails projects come ...

The best content for your career. Discover unlimited learning on demand for around $1/day.