ruby Archive

Why You Don’t Get Mock Objects

Although the Ruby community has embraced TDD like no other community ever has, we have always looked at mock objects with disdain, and perhaps even a little hatred. I’ve heard conference speakers call them “Wastes of time”,

A Guided Read of Minitest

Minitest is a testing library of just 1,500 lines of Ruby code. By comparison, Rspec clocks in at nearly 15,000! Why is Minitest so small? I’d like to investigate by doing a guided read of Minitest’s source

Testing Third Party JavaScript Widgets

Google Analytics, Like Buttons, Twitter Widgets, Olark chat boxes; all examples of third party JavaScript elements that are embedded by users in their websites. Testing third party code once embedded in a page, is often difficult and

Building a Culture of Quality in Software

Time and time again, skilled developers with good intentions set out into the green field of their new Rails app. Alas, as days turn to weeks, weeks to months and months to years, they find themselves with

Getting Started with Ruby on Rails Testing

Rubry on Rails has a fantastic environment and a rich set of tools and frameworks to make software testing easier. But how to you get started testing?