Sojan Jose
55f6257313
chore(hub): clean up legacy Captain hub flow (#13640)
## Summary
This PR cleans up legacy Hub/Captain integration paths and simplifies
hub URL behavior coverage in tests.
## Changes
- remove legacy Captain account endpoint flow from `ChatwootHub`
- remove obsolete spec coverage tied to that retired flow
- keep hub URL handling centralized in `base_url` with enterprise
overlay precedence
- simplify hub URL specs to assert explicit static URL expectations
where applicable
## Reproduce
Run the focused hub specs from this branch:
- `bundle exec rspec spec/lib/chatwoot_hub_spec.rb
spec/enterprise/lib/chatwoot_hub_spec.rb`
## Testing
Validated locally with:
- `bundle exec rspec spec/lib/chatwoot_hub_spec.rb
spec/enterprise/lib/chatwoot_hub_spec.rb`
- `bundle exec rubocop lib/chatwoot_hub.rb spec/lib/chatwoot_hub_spec.rb
enterprise/lib/enterprise/chatwoot_hub.rb
spec/enterprise/lib/chatwoot_hub_spec.rb`
2026-02-24 20:29:53 -08:00
..
2025-09-17 19:33:38 +05:30
2026-02-19 11:40:06 +05:30
2024-03-29 20:27:21 +11:00
2026-01-08 12:27:44 +05:30
2026-02-24 20:29:53 -08:00
2025-05-22 22:25:05 -07:00
2025-09-17 19:33:38 +05:30
2026-02-10 14:53:53 +05:30
2025-10-22 20:23:37 -07:00
2024-04-01 23:30:07 +05:30
2026-02-24 19:37:41 +05:30