Files
growstuff/spec/views/forums
Daniel O'Connorandgoogle-labs-jules[bot] 7828ad7260 Fix flaky test in forums/show view spec (#5186)
In app/views/posts/_summary.html.haml, post subjects are truncated
to 40 characters using truncate(strip_tags(post.subject), length: 40).
When FactoryBot generates a post subject with more than 40 characters
(via Faker::Book.title), the exact match in forums/show view spec
fails.

Assert against the first 20 characters of the subject, matching the
convention in spec/views/forums/index.html.haml_spec.rb.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
2026-10-31 19:24:45 +10:30
..