From 2a592585721364b45002a9a5cf3301f62f5ea4c1 Mon Sep 17 00:00:00 2001 From: Hagen Schink Date: Thu, 23 Oct 2014 10:55:59 +0200 Subject: [PATCH] Correct typo --- lib/api/errors/unauthorized.rb | 2 +- spec/requests/api/v3/support/response_examples.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/api/errors/unauthorized.rb b/lib/api/errors/unauthorized.rb index 15a65d68a9..55d7fc0d86 100644 --- a/lib/api/errors/unauthorized.rb +++ b/lib/api/errors/unauthorized.rb @@ -31,7 +31,7 @@ module API module Errors class Unauthorized < ErrorBase def initialize - super 403, 'You are not authorize to access this resource.' + super 403, 'You are not authorized to access this resource.' end end end diff --git a/spec/requests/api/v3/support/response_examples.rb b/spec/requests/api/v3/support/response_examples.rb index 4ba12bee31..9880e13795 100644 --- a/spec/requests/api/v3/support/response_examples.rb +++ b/spec/requests/api/v3/support/response_examples.rb @@ -57,7 +57,7 @@ shared_examples_for 'unauthorized access' do it_behaves_like 'error response', 403, 'MissingPermission', - 'You are not authorize to access this resource' + 'You are not authorized to access this resource' end shared_examples_for 'not found' do |id, type|