Upgrade to rspec 3.1

Hi Tien,

Upgrade to rspec 3.1 for your review,

Cheers, 
E.