diff options
author | James Lopez <james@jameslopez.es> | 2016-07-01 16:34:10 +0300 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2016-07-01 16:34:10 +0300 |
commit | f29c30475e621dedae24791ae9b144b6bef2f80a (patch) | |
tree | 3850dee7b3703d2e0046015ec84ed700379b0124 /spec | |
parent | d6d0a35598c6fefd31dcc6b43bc2698792788faa (diff) |
use has_many relationship with events
Diffstat (limited to 'spec')
-rw-r--r-- | spec/lib/gitlab/import_export/project_tree_restorer_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/lib/gitlab/import_export/project_tree_restorer_spec.rb b/spec/lib/gitlab/import_export/project_tree_restorer_spec.rb index 23036ab8108..e401ca99077 100644 --- a/spec/lib/gitlab/import_export/project_tree_restorer_spec.rb +++ b/spec/lib/gitlab/import_export/project_tree_restorer_spec.rb @@ -24,6 +24,12 @@ describe Gitlab::ImportExport::ProjectTreeRestorer, services: true do expect(Ci::Pipeline.first.notes).not_to be_empty end + + it 'restores the correct event' do + restored_project_json + + expect(Event.where.not(data: nil).first.data[:ref]).not_to be_empty + end end end end |