mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-09 17:15:18 +00:00
dbe0ee8a81
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
22 lines
446 B
Ruby
22 lines
446 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'rails_helper'
|
|
|
|
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
|