diff options
Diffstat (limited to 'spec/services/customer_relations/contacts')
-rw-r--r-- | spec/services/customer_relations/contacts/create_service_spec.rb | 6 | ||||
-rw-r--r-- | spec/services/customer_relations/contacts/update_service_spec.rb | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/spec/services/customer_relations/contacts/create_service_spec.rb b/spec/services/customer_relations/contacts/create_service_spec.rb index db6cce799fe..91aa51385e7 100644 --- a/spec/services/customer_relations/contacts/create_service_spec.rb +++ b/spec/services/customer_relations/contacts/create_service_spec.rb @@ -2,7 +2,7 @@ require 'spec_helper' -RSpec.describe CustomerRelations::Contacts::CreateService do +RSpec.describe CustomerRelations::Contacts::CreateService, feature_category: :service_desk do describe '#execute' do let_it_be(:user) { create(:user) } let_it_be(:not_found_or_does_not_belong) { 'The specified organization was not found or does not belong to this group' } @@ -50,8 +50,8 @@ RSpec.describe CustomerRelations::Contacts::CreateService do end it 'returns an error when the organization belongs to a different group' do - organization = create(:organization) - params[:organization_id] = organization.id + crm_organization = create(:crm_organization) + params[:organization_id] = crm_organization.id expect(response).to be_error expect(response.message).to match_array([not_found_or_does_not_belong]) diff --git a/spec/services/customer_relations/contacts/update_service_spec.rb b/spec/services/customer_relations/contacts/update_service_spec.rb index 729fdc2058b..105b5bad5f7 100644 --- a/spec/services/customer_relations/contacts/update_service_spec.rb +++ b/spec/services/customer_relations/contacts/update_service_spec.rb @@ -2,7 +2,7 @@ require 'spec_helper' -RSpec.describe CustomerRelations::Contacts::UpdateService do +RSpec.describe CustomerRelations::Contacts::UpdateService, feature_category: :service_desk do let_it_be(:user) { create(:user) } let(:contact) { create(:contact, first_name: 'Mark', group: group, state: 'active') } |