Commit 711194b8 authored by Nick Thomas's avatar Nick Thomas

CE->EE: Fix merge conflicts

parent ca026086
...@@ -961,13 +961,12 @@ class MergeRequest < ActiveRecord::Base ...@@ -961,13 +961,12 @@ class MergeRequest < ActiveRecord::Base
true true
end end
<<<<<<< HEAD
def base_pipeline def base_pipeline
@base_pipeline ||= project.pipelines.find_by(sha: merge_request_diff&.base_commit_sha) @base_pipeline ||= project.pipelines.find_by(sha: merge_request_diff&.base_commit_sha)
======= end
def update_project_counter_caches def update_project_counter_caches
Projects::OpenMergeRequestsCountService.new(target_project).refresh_cache Projects::OpenMergeRequestsCountService.new(target_project).refresh_cache
>>>>>>> ce/master
end end
private private
......
...@@ -16,11 +16,7 @@ describe Gitlab::LDAP::Adapter do ...@@ -16,11 +16,7 @@ describe Gitlab::LDAP::Adapter do
expect(adapter).to receive(:ldap_search) do |arg| expect(adapter).to receive(:ldap_search) do |arg|
expect(arg[:filter].to_s).to eq('(uid=johndoe)') expect(arg[:filter].to_s).to eq('(uid=johndoe)')
expect(arg[:base]).to eq('dc=example,dc=com') expect(arg[:base]).to eq('dc=example,dc=com')
<<<<<<< HEAD
expect(arg[:attributes]).to match(%w{dn uid cn mail email userPrincipalName memberof}) expect(arg[:attributes]).to match(%w{dn uid cn mail email userPrincipalName memberof})
=======
expect(arg[:attributes]).to match(%w{dn uid cn mail email userPrincipalName})
>>>>>>> ce/master
end.and_return({}) end.and_return({})
adapter.users('uid', 'johndoe') adapter.users('uid', 'johndoe')
...@@ -30,11 +26,7 @@ describe Gitlab::LDAP::Adapter do ...@@ -30,11 +26,7 @@ describe Gitlab::LDAP::Adapter do
expect(adapter).to receive(:ldap_search).with( expect(adapter).to receive(:ldap_search).with(
base: 'uid=johndoe,ou=users,dc=example,dc=com', base: 'uid=johndoe,ou=users,dc=example,dc=com',
scope: Net::LDAP::SearchScope_BaseObject, scope: Net::LDAP::SearchScope_BaseObject,
<<<<<<< HEAD
attributes: %w{dn uid cn mail email userPrincipalName memberof}, attributes: %w{dn uid cn mail email userPrincipalName memberof},
=======
attributes: %w{dn uid cn mail email userPrincipalName},
>>>>>>> ce/master
filter: nil filter: nil
).and_return({}) ).and_return({})
...@@ -71,11 +63,7 @@ describe Gitlab::LDAP::Adapter do ...@@ -71,11 +63,7 @@ describe Gitlab::LDAP::Adapter do
it 'uses the right uid attribute when non-default' do it 'uses the right uid attribute when non-default' do
stub_ldap_config(uid: 'sAMAccountName') stub_ldap_config(uid: 'sAMAccountName')
expect(adapter).to receive(:ldap_search).with( expect(adapter).to receive(:ldap_search).with(
<<<<<<< HEAD
hash_including(attributes: %w{dn sAMAccountName cn mail email userPrincipalName memberof}) hash_including(attributes: %w{dn sAMAccountName cn mail email userPrincipalName memberof})
=======
hash_including(attributes: %w{dn sAMAccountName cn mail email userPrincipalName})
>>>>>>> ce/master
).and_return({}) ).and_return({})
adapter.users('sAMAccountName', 'johndoe') adapter.users('sAMAccountName', 'johndoe')
......
...@@ -13,21 +13,12 @@ RSpec.configure do |config| ...@@ -13,21 +13,12 @@ RSpec.configure do |config|
DatabaseCleaner.strategy = :transaction DatabaseCleaner.strategy = :transaction
end end
<<<<<<< HEAD
config.before(:each, js: true) do
DatabaseCleaner.strategy = :truncation, { except: ['licenses'] }
end
config.before(:each, truncate: true) do
DatabaseCleaner.strategy = :truncation, { except: ['licenses'] }
=======
config.before(:each, :js) do config.before(:each, :js) do
DatabaseCleaner.strategy = :truncation DatabaseCleaner.strategy = :truncation, { except: ['licenses'] }
end end
config.before(:each, :truncate) do config.before(:each, :truncate) do
DatabaseCleaner.strategy = :truncation DatabaseCleaner.strategy = :truncation, { except: ['licenses'] }
>>>>>>> ce/master
end end
config.before(:each, :migration) do config.before(:each, :migration) do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment