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
..
2026-02-24 15:11:04 +04:00
2023-05-19 14:37:10 +05:30
2026-01-21 13:39:07 +05:30
2024-01-10 15:32:48 -08:00
2026-02-10 17:27:42 -08:00
2023-11-02 13:51:54 -07:00
2022-07-15 09:51:59 +07:00
2023-03-01 14:31:51 +05:30
2026-02-24 20:29:53 -08:00
2025-12-08 14:43:45 +05:30
2020-05-10 22:40:36 +05:30
2025-11-24 20:22:27 +05:30
2025-02-19 14:47:48 -08:00
2022-07-15 09:51:59 +07:00
2020-05-11 19:00:33 +05:30
2026-02-09 16:18:04 +05:30
2024-05-15 21:23:19 -07:00
2021-11-25 00:55:26 +05:30