Commit 106e288b authored by Rémy Coutable's avatar Rémy Coutable

Fix conflicts in specs

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 2dd4167d
...@@ -26,11 +26,7 @@ require('~/project'); ...@@ -26,11 +26,7 @@ require('~/project');
var fakeAjaxResponse = function fakeAjaxResponse(req) { var fakeAjaxResponse = function fakeAjaxResponse(req) {
var d; var d;
expect(req.url).toBe('/api/v3/projects.json?simple=true'); expect(req.url).toBe('/api/v3/projects.json?simple=true');
<<<<<<< HEAD
expect(req.data).toEqual({ search: '', order_by: 'last_activity_at', membership: true, per_page: 20 });
=======
expect(req.data).toEqual({ search: '', order_by: 'last_activity_at', per_page: 20, membership: true }); expect(req.data).toEqual({ search: '', order_by: 'last_activity_at', per_page: 20, membership: true });
>>>>>>> ce/master
d = $.Deferred(); d = $.Deferred();
d.resolve(this.projects_data); d.resolve(this.projects_data);
return d.promise(); return d.promise();
......
...@@ -211,7 +211,6 @@ describe User, models: true do ...@@ -211,7 +211,6 @@ describe User, models: true do
end end
end end
end end
<<<<<<< HEAD
it 'does not allow a user to be both an auditor and an admin' do it 'does not allow a user to be both an auditor and an admin' do
user = build(:user, :admin, :auditor) user = build(:user, :admin, :auditor)
...@@ -234,8 +233,6 @@ describe User, models: true do ...@@ -234,8 +233,6 @@ describe User, models: true do
expect(user).to be_valid expect(user).to be_valid
end end
end end
=======
>>>>>>> ce/master
end end
describe "non_ldap" do describe "non_ldap" do
......
...@@ -43,11 +43,8 @@ RSpec.configure do |config| ...@@ -43,11 +43,8 @@ RSpec.configure do |config|
config.include ActiveSupport::Testing::TimeHelpers config.include ActiveSupport::Testing::TimeHelpers
config.include StubGitlabCalls config.include StubGitlabCalls
config.include StubGitlabData config.include StubGitlabData
<<<<<<< HEAD
config.include Rails.application.routes.url_helpers, type: :routing
=======
config.include ApiHelpers, :api config.include ApiHelpers, :api
>>>>>>> ce/master config.include Rails.application.routes.url_helpers, type: :routing
config.infer_spec_type_from_file_location! config.infer_spec_type_from_file_location!
...@@ -61,17 +58,16 @@ RSpec.configure do |config| ...@@ -61,17 +58,16 @@ RSpec.configure do |config|
TestEnv.init TestEnv.init
end end
<<<<<<< HEAD
config.before(:all) do config.before(:all) do
License.destroy_all License.destroy_all
TestLicense.init TestLicense.init
======= end
if ENV['CI'] if ENV['CI']
# Retry only on feature specs that use JS # Retry only on feature specs that use JS
config.around :each, :js do |ex| config.around :each, :js do |ex|
ex.run_with_retry retry: 3 ex.run_with_retry retry: 3
end end
>>>>>>> ce/master
end end
config.around(:each, :caching) do |example| config.around(:each, :caching) do |example|
......
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