blob: 66a54dc10ac52f075019887c1b791a23ea3078c9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe Admin::BroadcastMessagesController do
before do
sign_in(create(:admin))
end
describe 'GET /preview' do
render_views
it 'renders preview partial' do
get :preview, params: { broadcast_message: { message: "Hello, world!" } }
expect(response).to have_gitlab_http_status(:ok)
expect(response.body).to render_template(:_preview)
end
end
end
|