diff --git a/spec/requests/api/badges_spec.rb b/spec/requests/api/badges_spec.rb index 4a891a18444..cbd8e23ff00 100644 --- a/spec/requests/api/badges_spec.rb +++ b/spec/requests/api/badges_spec.rb @@ -3,8 +3,8 @@ require 'swagger_helper' describe 'badges' do - let(:admin) { Fabricate(:admin) } - let(:badge) { Fabricate(:badge) } + fab!(:admin) { Fabricate(:admin) } + fab!(:badge) { Fabricate(:badge) } before do Jobs.run_immediately! diff --git a/spec/requests/api/schemas/json/badge_list_response.json b/spec/requests/api/schemas/json/badge_list_response.json index ba1a895d73c..9c0fa2b16bb 100644 --- a/spec/requests/api/schemas/json/badge_list_response.json +++ b/spec/requests/api/schemas/json/badge_list_response.json @@ -78,7 +78,10 @@ "type": "boolean" }, "i18n_name": { - "type": "string" + "type": [ + "string", + "null" + ] }, "badge_type_id": { "type": "integer" @@ -105,7 +108,6 @@ "target_posts", "auto_revoke", "show_posts", - "i18n_name", "badge_type_id" ] }