require 'rails_helper' describe ::ActionService do describe '#resolve_conversation' do let(:conversation) { create(:conversation) } let(:action_service) { described_class.new(conversation) } it 'resolves the conversation' do expect(conversation.status).to eq('open') action_service.resolve_conversation(nil) expect(conversation.reload.status).to eq('resolved') end end # TODO: Expand this test suite end