mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-11-05 04:32:48 -05:00
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>