Everyday Rails

August 2012 updates for Everyday Rails Testing with RSpec

By Aaron Sumner, August 03, 2012. File under: , .

For anyone who either doesn’t subscribe to updates from Leanpub, or is still on the fence about buying my book about learning Rails testing through RSpec, I just wanted to pass along that I pushed an update this evening with the following updates:

  • Added the change log back to the book.
  • Replaced usage of == to eq throughout the book to mirror best practice in RSpec expectations.
  • Added clarification that you need to re-clone your development database to test every time you make a database change (chapter 3).
  • Added a note on the great factory debate of 2012 (chapter 3).
  • Added a section about the new RSpec expect() syntax (chapter 3).
  • Fixed incomplete specs for the #edit method (chapter 5).
  • Added an example of testing a non-CRUD method in a controller (chapter 5).
  • Added tips on testing non-HTML output (chapter 5).
  • Fixed a typo in the :message factory (chapter 5).
  • Fixed typo in spelling of transactions (chapter 8).
  • Added a simple technique for testing Rake tasks (chapter 10).

In addition, Leanpub is now accepting credit card transactions–so those of you who in the past couldn’t use PayPal can now buy a copy. Still only nine American bucks.

What do you think? Follow along on on Twitter or Facebook to let me know what you think and catch my latest posts. Better yet, subscribe to my newsletter for updates from Everyday Rails, book picks, and other thoughts and ideas that didn't quite fit here.

Black lives matter.

I stand with the Black community against systemic racism, police violence and brutality, intolerance, and hate in the United States and worldwide. We must all demand better from our leaders, and ourselves. Stop tolerating intolerance.

While you're here, please consider making a donation to Black Girls CODE, who do great, important work to provide opportunity to underprivileged girls interested in tech, or any organization working toward equity and safety for all, not just the privileged. Thank you.

Test with confidence!

If you liked my series on practical advice for adding reliable tests to your Rails apps, check out the expanded ebook version. Lots of additional, exclusive content and a complete sample Rails application.

Newsletter

Ruby on Rails news and tips, and other ideas and surprises from Aaron at Everyday Rails. Delivered to your inbox on no particular set schedule.