Commit 87452acf authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge branch 'cablett-fix-available-typo' into 'master'

Fix typo "available"

See merge request gitlab-org/gitlab!22763
parents e5d69077 94301977
......@@ -42,7 +42,7 @@ module Mutations
if project_path.present?
project = find_project!(project_path: project_path)
elsif !can_create_personal_snippet?
raise_resource_not_avaiable_error!
raise_resource_not_available_error!
end
snippet = CreateSnippetService.new(project,
......
......@@ -24,7 +24,7 @@ describe TreeHelper do
end
end
context 'when file lock is not avaiable' do
context 'when file lock is not available' do
it 'returns the path information' do
stub_licensed_features(file_locks: false)
......
......@@ -40,7 +40,7 @@ module Gitlab
def authorize!(object)
unless authorized_resource?(object)
raise_resource_not_avaiable_error!
raise_resource_not_available_error!
end
end
......@@ -63,7 +63,7 @@ module Gitlab
end
end
def raise_resource_not_avaiable_error!
def raise_resource_not_available_error!
raise Gitlab::Graphql::Errors::ResourceNotAvailable, RESOURCE_ACCESS_ERROR
end
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