1
0
Fork 0

Add specs for FederalSubjectsController#index

This commit is contained in:
Alex Kotov 2019-07-20 08:01:23 +05:00
parent 61e647fb53
commit bad7ba56d3
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08

View file

@ -0,0 +1,19 @@
# frozen_string_literal: true
require 'rails_helper'
RSpec.describe 'GET /federal_subjects' do
before do
sign_in current_account.user if current_account&.user
create_list :federal_subject, rand(1..3)
get '/federal_subjects'
end
for_account_types nil, :guest, :usual, :superuser do
specify do
expect(response).to have_http_status :ok
end
end
end