mirror of
https://github.com/mastodon/mastodon.git
synced 2026-04-21 06:28:37 -05:00
21 lines
445 B
Ruby
21 lines
445 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'rails_helper'
|
|
|
|
RSpec.describe 'Admin Collections' do
|
|
describe 'GET /admin/accounts/:account_id/collections/:id' do
|
|
let(:collection) { Fabricate(:collection) }
|
|
|
|
before do
|
|
sign_in Fabricate(:admin_user)
|
|
end
|
|
|
|
it 'returns success' do
|
|
get admin_account_collection_path(collection.account_id, collection)
|
|
|
|
expect(response)
|
|
.to have_http_status(200)
|
|
end
|
|
end
|
|
end
|