Commit graph

7 commits

Author SHA1 Message Date
Lin Jen-Shin
25ef6f51c9
Use fake application settings for migration tests 2018-12-19 11:24:54 +01:00
Stan Hu
8fd2c8b16a Prevent attr_encrypted models from being overriden
Fix failing spec in spec/controllers/admin/hooks_controller_spec.rb

attr_encrypted expects models to have their attribute methods defined,
or it will override them with standard Ruby accessors. Migration specs
that rolled back the state of the database after columns were migrated
to encrypted values were interfering with these definitions. To ensure
that the SystemHook specs pass, we need to call
`SystemHook.define_attribute_methods` to ensure that attr_encrypted sees
the right methods that reflect the latest state of the database.

Closes https://gitlab.com/gitlab-org/gitlab-ee/issues/8234
2018-11-07 12:18:04 -08:00
Jarka Košanová
f4c861db6a Add name definition for table method 2018-09-24 22:50:41 +02:00
Jarka Kadlecová
fa36101a7f Use data_source_exists? instead of table_exists?
Use data_source_exists? where possible instead of table_exists? in order to be Rails5 compatible
2018-06-14 08:39:43 +02:00
Grzegorz Bizon
d8d0067bf5 Add changelog for pipeline build foreign key 2018-05-08 16:44:00 +02:00
Grzegorz Bizon
479a15e722 Add database foreign key between pipelines and builds 2018-05-08 16:39:29 +02:00
Rémy Coutable
023d4f6f2f
Move spec helpers/matchers/shared examples/contexts to their relevant folder
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-04-23 12:20:30 +02:00
Renamed from spec/support/migrations_helpers.rb (Browse further)