Rewrite from minitest to rspec 3