upgraded nokogiri to 1.6 & replaced lambda with new expect syntax