Rails 4.0 upgrade

User.roles_ids is expecting an hash or array. For some Rspec test creates User.roles_ids in the same way with an array or hash.