Commit 66d4f259 authored by Gabriel Mazetto's avatar Gabriel Mazetto

Rename many path_with_namespace -> full_path

parent ed91b678
......@@ -19,7 +19,7 @@ module Projects
service_id: service.id,
team_id: slack_data['team_id'],
team_name: slack_data['team_name'],
alias: project.path_with_namespace,
alias: project.full_path,
user_id: slack_data['user_id']
)
......
......@@ -51,7 +51,7 @@ class Spinach::Features::GroupsManagement < Spinach::FeatureSteps
end
page.within '.sub-nav' do
find('a', text: 'General').trigger('click')
end
end
end
step 'I enable membership lock' do
......@@ -65,7 +65,7 @@ class Spinach::Features::GroupsManagement < Spinach::FeatureSteps
click_link 'Projects'
end
link = "/#{@project.path_with_namespace}/project_members"
link = "/#{@project.full_path}/project_members"
find(:xpath, "//a[@href=\"#{link}\"]").click
end
......
......@@ -2192,15 +2192,15 @@ describe Project do
let!(:project2) { create(:project) }
it 'returns the projects matching the paths' do
projects = described_class.where_full_path_in([project1.path_with_namespace,
project2.path_with_namespace])
projects = described_class.where_full_path_in([project1.full_path,
project2.full_path])
expect(projects).to contain_exactly(project1, project2)
end
it 'returns projects regardless of the casing of paths' do
projects = described_class.where_full_path_in([project1.path_with_namespace.upcase,
project2.path_with_namespace.upcase])
projects = described_class.where_full_path_in([project1.full_path.upcase,
project2.full_path.upcase])
expect(projects).to contain_exactly(project1, project2)
end
......
......@@ -161,7 +161,7 @@ describe MergeRequests::SquashService do
end
it 'logs the MR reference and exception' do
expect(service).to receive(:log_error).with(a_string_including("#{project.path_with_namespace}#{merge_request.to_reference}"))
expect(service).to receive(:log_error).with(a_string_including("#{project.full_path}#{merge_request.to_reference}"))
expect(service).to receive(:log_error).with(error)
service.execute(merge_request)
......
......@@ -37,10 +37,10 @@ describe SlashCommands::GlobalSlackHandler do
enable_slack_application(project)
slack_integration = create(:slack_integration, service: project.gitlab_slack_application_service)
slack_integration.update(alias: project.path_with_namespace)
slack_integration.update(alias: project.full_path)
handler_with_valid_token(
text: "#{project.path_with_namespace} issue new title",
text: "#{project.full_path} issue new title",
team_id: slack_integration.team_id
).trigger
end
......@@ -66,10 +66,10 @@ describe SlashCommands::GlobalSlackHandler do
enable_slack_application(project)
slack_integration = create(:slack_integration, service: project.gitlab_slack_application_service)
slack_integration.update(alias: project.path_with_namespace)
slack_integration.update(alias: project.full_path)
handler_with_valid_token(
text: "#{project.path_with_namespace} issue new title",
text: "#{project.full_path} issue new title",
team_id: slack_integration.team_id
).trigger
end
......
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