1
0
mirror of https://github.com/funamitech/mastodon synced 2024-11-27 22:38:42 +09:00
YuruToot/spec/requests/emojis_spec.rb
2024-09-04 05:12:25 +00:00

22 lines
452 B
Ruby

# frozen_string_literal: true
require 'rails_helper'
RSpec.describe 'Emojis' do
describe 'GET /emojis/:id' do
let(:emoji) { Fabricate(:custom_emoji, shortcode: 'coolcat') }
it 'returns http success with correct json' do
get "/emojis/#{emoji.id}"
expect(response)
.to have_http_status(200)
expect(body_as_json)
.to include(
name: ':coolcat:',
type: 'Emoji'
)
end
end
end