Skip to content

Upgrade factory_bot to latest 5.1.0

Gabriel Mazetto requested to merge brodock/update-factorybot into master

What does this MR do?

  1. Upgrade factory bot
  2. 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

Merge request reports

Loading