This website requires JavaScript.
Explore
Help
Sign In
kotovalexarian-likes-gitlab
/
gitlab-org--gitlab-foss
Watch
1
Star
0
Fork
You've already forked gitlab-org--gitlab-foss
0
Code
Releases
Activity
272281e472
gitlab-org--gitlab-foss
/
spec
/
factories
/
service_hooks.rb
7 lines
97 B
Ruby
Raw
Normal View
History
Unescape
Escape
Replace factory_girl_rails with factory_bot_rails I've followed the [upgrade guide](https://github.com/thoughtbot/factory_bot/blob/4-9-0-stable/UPGRADE_FROM_FACTORY_GIRL.md) and ran these two commands: ``` grep -e FactoryGirl **/*.rake **/*.rb -s -l | xargs sed -i "" "s|FactoryGirl|FactoryBot|" grep -e factory_girl **/*.rake **/*.rb -s -l | xargs sed -i "" "s|factory_girl|factory_bot|" ``` Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-12-14 00:13:44 +00:00
FactoryBot
.
define
do
Move all factory definitions to their own file
2016-02-17 03:55:24 +00:00
factory
:service_hook
do
Don't use FFaker in factories, use sequences instead FFaker can generate data that randomly break our test suite. This simplifies our factories and use sequences which are more predictive. Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-03-23 13:08:39 +00:00
url
{
generate
(
:url
)
}
Move all factory definitions to their own file
2016-02-17 03:55:24 +00:00
service
end
end