2021-10-27 15:23:28 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
2023-05-27 22:25:52 +05:30
|
|
|
RSpec.describe Users::BannedUserBaseService, feature_category: :user_management do
|
2021-10-27 15:23:28 +05:30
|
|
|
let(:admin) { create(:admin) }
|
|
|
|
let(:base_service) { described_class.new(admin) }
|
|
|
|
|
|
|
|
describe '#initialize' do
|
|
|
|
it 'sets the current_user instance value' do
|
|
|
|
expect(base_service.instance_values["current_user"]).to eq(admin)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|