Fix rspec depreciation warning
Rails4 compatibility