Fix broken spec on Ruby 2