Rails application testing, top to bottom
Intro to a mini-series of articles with advice and pointers on practical, pragmatic testing for Ruby on Rails applications, based on my recent WellRailed presentation on the subject.
Intro to a mini-series of articles with advice and pointers on practical, pragmatic testing for Ruby on Rails applications, based on my recent WellRailed presentation on the subject.
Before we can get stuck into how to test each bit of our application, we need to be clear about what we need to cover.
In MVC testing we test that each of parts of our application behave. Testing them separately makes our tests faster to write, faster to run, and reduces rework when we make changes to the app. Covers when to write the tests, and Test::Unit vs. RSpec.
For most apps, this is where you get the biggest pay rate of bugs squashed to time spent. What to test, what not to test, and some inflammatory comments about stubbing out too much.
Youtube brings us this brill video of ‘just in time business processes’ in a Bangkok market with a train track running through the middle of it.
Cool video, turns out wolves can fish for salmon, not unlike bears.
An interesting day in mapping 2.0 today, with the beta release of the NZ National Broadband Map project, and Google Maps' upgrade to show terrain shading.
Turns out the Republic of the Congo is not the same country as the Democratic Republic of the Congo… And some disturbing reports from the DRC :/.