Blog posts in November 2007

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.

More

Rails testing miniseries part 2: What we want to test

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.

More

Rails testing miniseries part 3: MVC testing

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.

More

Rails testing miniseries part 4: Model testing

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.

More

JIT business in Bangkok

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.

More

Wolves can fish!

Cool video, turns out wolves can fish for salmon, not unlike bears.

More

Mapping news

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.

More

Congo

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 :/.

More

Rails testing miniseries part 5: Controller testing

In Rails apps the main intelligence is supposed to live in the model. As a result, testing properly-designed controllers should mostly be just testing that things are glued together correctly; if your app's factored well, it should be simple and quick to do.

More

Rails testing miniseries part 6: View testing

View testing allows you to test out complicated or critical view code, but has probably the lowest payoff in terms of problems prevented per developer minute spec.

More