diff options
Diffstat (limited to 'spec/services/chat_names/authorize_user_service_spec.rb')
-rw-r--r-- | spec/services/chat_names/authorize_user_service_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/services/chat_names/authorize_user_service_spec.rb b/spec/services/chat_names/authorize_user_service_spec.rb index b0bb741564d..53d90c7f100 100644 --- a/spec/services/chat_names/authorize_user_service_spec.rb +++ b/spec/services/chat_names/authorize_user_service_spec.rb @@ -4,10 +4,10 @@ require 'spec_helper' RSpec.describe ChatNames::AuthorizeUserService do describe '#execute' do - subject { described_class.new(service, params) } - + let(:integration) { create(:integration) } let(:result) { subject.execute } - let(:service) { create(:service) } + + subject { described_class.new(integration, params) } context 'when all parameters are valid' do let(:params) { { team_id: 'T0001', team_domain: 'myteam', user_id: 'U0001', user_name: 'user' } } |