I think here is @match.match_number.should_not be_nil. not what you have. wdyt?