Merge remote-tracking branch 'parent/main' into kb_migration

This commit is contained in:
KMY 2023-08-07 22:10:24 +09:00
commit ce3cf82f8f
175 changed files with 1951 additions and 826 deletions

View file

@ -0,0 +1,19 @@
# frozen_string_literal: true
require 'rails_helper'
RSpec.describe 'Languages' do
describe 'GET /api/v1/instance/languages' do
before do
get '/api/v1/instance/languages'
end
it 'returns http success' do
expect(response).to have_http_status(200)
end
it 'returns the supported languages' do
expect(body_as_json.pluck(:code)).to match_array LanguagesHelper::SUPPORTED_LOCALES.keys.map(&:to_s)
end
end
end