you could use be_nil instead of eq(nil)
But that's just a side note not a review comment =)