1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
lpr-partynest/spec/requests/settings/profile/edit_spec.rb

28 lines
556 B
Ruby

# frozen_string_literal: true
require 'rails_helper'
RSpec.describe 'GET /settings/profile/edit' do
before do
sign_in current_account.user if current_account&.user
get '/settings/profile/edit'
end
for_account_types nil do
specify do
expect(response).to have_http_status :unauthorized
end
end
xfor_account_types :guest do
specify do
expect(response).to have_http_status :ok
end
end
for_account_types :usual, :superuser do
specify do
expect(response).to have_http_status :ok
end
end
end