diff options
author | Jasper Maes <jaspermaes.jm@gmail.com> | 2018-08-27 20:54:34 +0300 |
---|---|---|
committer | Jasper Maes <jaspermaes.jm@gmail.com> | 2018-08-27 21:08:02 +0300 |
commit | 83739b8b4303449ee810993b484bff382c378cba (patch) | |
tree | 141cccd292a1ab2656951f776735533f968a8b7d /spec/lib/gitlab/import/merge_request_creator_spec.rb | |
parent | 881ba3f5977dafda7feee77f841ace290c918a8d (diff) |
Rails5: fix can't quote ActiveSupport::HashWithIndifferentAccess
Diffstat (limited to 'spec/lib/gitlab/import/merge_request_creator_spec.rb')
-rw-r--r-- | spec/lib/gitlab/import/merge_request_creator_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/lib/gitlab/import/merge_request_creator_spec.rb b/spec/lib/gitlab/import/merge_request_creator_spec.rb index cd3359da341..7c73e9b39f7 100644 --- a/spec/lib/gitlab/import/merge_request_creator_spec.rb +++ b/spec/lib/gitlab/import/merge_request_creator_spec.rb @@ -11,7 +11,7 @@ describe Gitlab::Import::MergeRequestCreator do context 'merge request already exists' do let(:merge_request) { create(:merge_request, target_project: project, source_project: project) } let(:commits) { merge_request.merge_request_diffs.first.commits } - let(:attributes) { HashWithIndifferentAccess.new(merge_request.attributes) } + let(:attributes) { HashWithIndifferentAccess.new(merge_request.attributes.except("merge_params")) } it 'updates the data' do commits_count = commits.count @@ -28,7 +28,7 @@ describe Gitlab::Import::MergeRequestCreator do context 'new merge request' do let(:merge_request) { build(:merge_request, target_project: project, source_project: project) } - let(:attributes) { HashWithIndifferentAccess.new(merge_request.attributes) } + let(:attributes) { HashWithIndifferentAccess.new(merge_request.attributes.except("merge_params")) } it 'creates a new merge request' do attributes.delete(:id) |