diff options
Diffstat (limited to 'spec/services/customer_relations/organizations/create_service_spec.rb')
-rw-r--r-- | spec/services/customer_relations/organizations/create_service_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/services/customer_relations/organizations/create_service_spec.rb b/spec/services/customer_relations/organizations/create_service_spec.rb index 18eefdd716e..8748fe44763 100644 --- a/spec/services/customer_relations/organizations/create_service_spec.rb +++ b/spec/services/customer_relations/organizations/create_service_spec.rb @@ -2,16 +2,16 @@ require 'spec_helper' -RSpec.describe CustomerRelations::Organizations::CreateService do +RSpec.describe CustomerRelations::Organizations::CreateService, feature_category: :service_desk do describe '#execute' do let_it_be(:user) { create(:user) } let(:group) { create(:group, :crm_enabled) } - let(:params) { attributes_for(:organization, group: group) } + let(:params) { attributes_for(:crm_organization, group: group) } subject(:response) { described_class.new(group: group, current_user: user, params: params).execute } - it 'creates an organization' do + it 'creates a crm_organization' do group.add_developer(user) expect(response).to be_success @@ -24,7 +24,7 @@ RSpec.describe CustomerRelations::Organizations::CreateService do expect(response.message).to match_array(['You have insufficient permissions to create an organization for this group']) end - it 'returns an error when the organization is not persisted' do + it 'returns an error when the crm_organization is not persisted' do group.add_developer(user) params[:name] = nil |