Upgrade factory_bot to latest 5.1.0
What does this MR do?
- Upgrade factory bot
- Fix factories that are still using deprecated static attributes
I've used a find and replace RegExp in RubyMine to do the majority of the work (had to do some extra manual cases as well):
Find:
^([ ]+)(?!trait|factory|when|sequence|association|before|after|raise)(|[a-z1-p_]+) ('[^']*'|"[^"]*"|[0-9.]+|nil|true|false|:[a-z_]+|\[\]|\{\})
Replace:
$1$2 { $3 }
Edited by Gabriel Mazetto