Commit graph

15 commits

Author SHA1 Message Date
Rémy Coutable
4af9d592c5 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 15:01:55 +01:00
Shinya Maeda
1b481342a0 Fix spec 2017-09-03 23:49:11 +09:00
Shinya Maeda
07f7a01b4d Improve spec. Add validation for accel_level on runner. 2017-09-03 23:49:10 +09:00
Shinya Maeda
1024718e9f Refactor access_level to not_protected and ref_protected 2017-09-03 23:49:10 +09:00
Shinya Maeda
3875983205 Impprove spec by godfat suggestions 2017-09-03 23:49:10 +09:00
Shinya Maeda
eda34b1a18 Add spec. Fix runner setting page. It worked. 2017-09-03 23:49:10 +09:00
Rémy Coutable
4e3516788f 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-04-03 18:54:48 +02:00
Kamil Trzcinski
b7f4553e3e
Backport changes introduced by https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/1083 2017-01-20 12:25:53 +01:00
Grzegorz Bizon
8e603b62c9 Add missing specs for new methods in pipeline class 2016-12-27 13:15:14 +01:00
Valery Sizov
8b2dbe8997 Remove schema annotations completely 2016-09-16 14:37:48 +03:00
Tomasz Maczukin
5b8613b8e6
Add test with inactive error use case for 'POST /ci/api/v1/builds/register.json' 2016-09-13 17:44:20 +02:00
Robert Speicher
6df45eb463 Move all factory definitions to their own file 2016-03-04 15:26:51 -05:00
Tomasz Maczukin
acfe25edc0 Refactorize ci_runner factory and let definitions in runners API spec 2016-02-19 13:18:49 +01:00
Dmitriy Zaporozhets
bf8013f1a4 Fix most of project specs 2015-09-10 15:56:33 +02:00
Dmitriy Zaporozhets
76c6aeb9bc Merge CI factories and CI spec/support with GitLab 2015-09-09 13:37:50 +02:00
Renamed from spec/ci/factories/runners.rb (Browse further)