Skip to content

Self-hosted project management for devs and their clients: tickets, time tracking, docs and meetings, with an AI assistant that cites its sources. AGPL-3.0.

test: let the people spec accept a server version from 0.13.0 on

Guido Boyke479ff0b1ed4f
diff --git a/spec/requests/api/mcp_people_spec.rb b/spec/requests/api/mcp_people_spec.rb
index 1e3a83c..d0885f3 100644
--- a/spec/requests/api/mcp_people_spec.rb
+++ b/spec/requests/api/mcp_people_spec.rb
@@ -132,9 +132,11 @@ RSpec.describe 'MCP people tools', :ci_guard, type: :request do
end
end
- it 'reports server version 0.13.0' do
+ # The version that brought the people tools, or a later one: a pin on the
+ # exact number broke with the next patch (0.13.1).
+ it 'reports a server version from 0.13.0 on' do
body = rpc('initialize', { protocolVersion: '2025-06-18', capabilities: {}, clientInfo: { name: 'rspec', version: '0' } })
- expect(body.dig('result', 'serverInfo', 'version')).to eq('0.13.0')
+ expect(Gem::Version.new(body.dig('result', 'serverInfo', 'version'))).to be >= Gem::Version.new('0.13.0')
end
describe 'find_people' do