Archive for January, 2009

An RJS Redirect Matcher for rspec

January 29th, 2009

You know what’s stupid? Clumsily checking for a javascript redirect in your RJS with this kind of shit:

it "should redirect to the collaborative quote screen" do
xhr :post, ‘attach’, :attachment_id => ‘4023′
response.body.should =~ /window\.location\.href = \"/collabquote\";"
end

Not only is this ugly, but it ties your test to a particular route, rather than [...]

Behind the scenes at Richmond’s unbowling destination

January 17th, 2009

So Matt O., I, and our wives rolled over to Plaza Bowl and Duckpins this past Thursday to duckpin bowl and drink PBR pitchers. We had a great time and ended up talking to the owner (it was a slow night). He asked us about any ideas we had for better marketing the place and [...]