diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-13 18:08:52 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-13 18:08:52 +0300 |
commit | 0ab47b994caa80c5587f33dc818626b66cfdafe2 (patch) | |
tree | 5ef3976d2f84e3368903a67ba2dbd87a74b9a43c /spec/lib/gitlab/import_export | |
parent | 1308dc5eb484ab0f8064989fc551ebdb4b1a7976 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/lib/gitlab/import_export')
-rw-r--r-- | spec/lib/gitlab/import_export/all_models.yml | 1 | ||||
-rw-r--r-- | spec/lib/gitlab/import_export/hash_util_spec.rb | 6 |
2 files changed, 4 insertions, 3 deletions
diff --git a/spec/lib/gitlab/import_export/all_models.yml b/spec/lib/gitlab/import_export/all_models.yml index 4c521ae7f07..e6a60f39bd4 100644 --- a/spec/lib/gitlab/import_export/all_models.yml +++ b/spec/lib/gitlab/import_export/all_models.yml @@ -91,6 +91,7 @@ snippets: - award_emoji - user_agent_detail - user_mentions +- snippet_repository releases: - author - project diff --git a/spec/lib/gitlab/import_export/hash_util_spec.rb b/spec/lib/gitlab/import_export/hash_util_spec.rb index ddd874ddecf..b97c6665d0e 100644 --- a/spec/lib/gitlab/import_export/hash_util_spec.rb +++ b/spec/lib/gitlab/import_export/hash_util_spec.rb @@ -9,7 +9,7 @@ describe Gitlab::ImportExport::HashUtil do describe '.deep_symbolize_array!' do it 'symbolizes keys' do expect { described_class.deep_symbolize_array!(stringified_array) }.to change { - stringified_array.first.keys.first + stringified_array.first.each_key.first }.from('test').to(:test) end end @@ -17,13 +17,13 @@ describe Gitlab::ImportExport::HashUtil do describe '.deep_symbolize_array_with_date!' do it 'symbolizes keys' do expect { described_class.deep_symbolize_array_with_date!(stringified_array_with_date) }.to change { - stringified_array_with_date.first.keys.first + stringified_array_with_date.first.each_key.first }.from('test_date').to(:test_date) end it 'transforms date strings into Time objects' do expect { described_class.deep_symbolize_array_with_date!(stringified_array_with_date) }.to change { - stringified_array_with_date.first.values.first.class + stringified_array_with_date.first.each_value.first.class }.from(String).to(ActiveSupport::TimeWithZone) end end |