Skip to content

Commit 0234035

Browse files
erimicelclaude
andcommitted
fix(test): align local Typesense image with v30+ supported range
The integration spec at `spec/typesense/collections_spec.rb:156` expects each field in the create-collection response to include `truncate_len`, which was added to Typesense's field schema response in v30.x. The local `docker-compose.yml` was still pinned to `typesense/typesense:29.0`, so the spec failed locally with the field missing from the actual response: Failure/Error: expect(result['fields']).to eq(expected_fields) Diff: - "truncate_len" => 100, The README compatibility table already states typesense-ruby v5.0.0 supports Typesense >= v30.0, so this just realigns local development with the gem's stated server compatibility. Bumping to the latest stable patch (30.2) also surfaced two new fields on curation rule responses (`stem`, `synonyms`); the curation set test fixtures are updated to mirror them. After the change: - `bundle exec rspec` reports 151 examples, 0 failures, 16 pending (down from 27 pending: 11 specs that were skipped against Typesense 29 are now exercised against 30.2). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent f33f224 commit 0234035

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
22
typesense:
3-
image: typesense/typesense:29.0
3+
image: typesense/typesense:30.2
44
ports:
55
- "127.0.0.1:8108:8108"
66
volumes:

spec/typesense/curation_set_spec.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@
2727
'id' => 'rule-1',
2828
'rule' => {
2929
'query' => 'test',
30-
'match' => 'exact'
30+
'match' => 'exact',
31+
'stem' => false,
32+
'synonyms' => false
3133
},
3234
'includes' => [{ 'id' => '123', 'position' => 1 }],
3335
'excludes' => [],

spec/typesense/curation_sets_spec.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@
2727
'id' => 'rule-1',
2828
'rule' => {
2929
'query' => 'test',
30-
'match' => 'exact'
30+
'match' => 'exact',
31+
'stem' => false,
32+
'synonyms' => false
3133
},
3234
'includes' => [{ 'id' => '123', 'position' => 1 }],
3335
'excludes' => [],

0 commit comments

Comments
 (0)