inchworm

inchworms

Summer of Coding, one inch at a time...

Drink and Be Merry for Tomorrow We Refactor

inchworms -

Today we finished off the first iteration of rspec tests for Sinatra GET requests. This amounted to almost 100 different tests. Not bad for Sinatra newbies :-)

So far we’ve mainly just rewritten the existing Unit tests, turning them into RSpec versions. This has helped us get our heads around the differences between Unit and RSpec, and also enabled us to work out what Sinatra itself does with the various possible GET requests it can receive.

We’ve known all along that we would need to refactor our work. And not just because of messages like these:

refactor

So today we’re celebrating the fact that we’re at the end of the GET list.

Tomorrow we begin refactoring, which we think will probably involve a bit of this:

lower expectations