I need to hire some Rails developers at Lumos Labs, so I decided to write a spec for the position:
http://sfbay.craigslist.org/sfc/eng/646385102.html
require File.dirname(__FILE__) + '/../spec_helper' describe Developer do before(:each) do @developer = Developer.new(ideal_developer_qualities_ hash) end it "should test drive" do @developer.should be_test_driven end it "should know rails 2.x" do @developer.experience.should include(:rails2) end it "should know REST patterns" do @developer.experience.should include(:rest) end it "should use selenium" do @developer.experience.should include(:selenium) end it "should use capistrano" do @developer.experience.should include(:capistrano) end it "should receive competitive compensation" do @developer.should respond_to(:competitive_compensation) end it "should like brains" do @developer.should be_familiar_with('www.lumosity.com') end end
I know the 'it' thing seems a bit odd, that's just how rspec works. I could have created a new dsl but then he_or_she looked dumb too. I was tempted to add an "it puts the lotion in the basket" but figured that would be just a tad too creepy for a job listing.
Hey dav, haven't talked to you in a while. See you at rails conf again ?
http://github.com/dysinger/luminocity-interview/commit/46d7709438c8182f557c6776ccd04c6b9a4f95b8
http://github.com/dysinger/luminocity-interview/commit/46d7709438c8182f557c6776ccd04c6b9a4f95b8
http://github.com/dysinger/luminocity-interview/commit/9114168384d20134d9987cf1f7659a374d1babfc
I am not looking for work. I just saw your post and thought it was fun.
Posted by: Tim Dysinger | 2008.04.19 at 07:07 PM
Ha, thanks for the refactorings :) ...Although I'd have to disagree with the second one, being clear trumps DRY in tests. First and third are dead on though. Yep, I'll be at Rails Conf again, see you there!
Posted by: dav | 2008.04.20 at 10:26 AM