• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

MushroomObserver / mushroom-observer / 26630754906
97%

Build:
DEFAULT BRANCH: main
Ran 29 May 2026 10:00AM UTC
Jobs 1
Files 1029
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

29 May 2026 09:56AM UTC coverage: 96.479%. Remained the same
26630754906

push

github

web-flow
LightboxCaption: embed ImageVoteInterface; strengthen test coverage (#4388)

* LightboxCaption: embed ImageVoteInterface; strengthen test coverage

The lightbox overlay (populated from the theater button's
`data-sub-html`) was missing the vote interface. Users could see vote
buttons under the in-page carousel/interactive image but not when
they opened the lightbox to see the image full-size — voting required
closing the lightbox and re-clicking on the small page-context links.

Adds `render_vote_section` to `LightboxCaption`, gated on `@user &&
@image` (matches `images/show/_image_panel.html.erb`'s "login required"
rule), placed between the obs/image caption and the image-links
footer. Anonymous viewers see no vote UI; obs-only pre-render
contexts without an image are also skipped.

Strengthens existing test coverage that previously hid the gap:
- `InteractiveImageTest#test_renders_with_votes_enabled` /
  `#test_renders_with_votes_disabled` previously only asserted that
  `image-sizer` was present (unrelated to votes). Now asserts the
  actual vote-section markers (`#image_vote_<id>`, `.vote-meter`,
  `.vote-buttons`, `.image-vote-links`) — which is what `votes:
  true` is supposed to produce.
- `CarouselTest#test_carousel_item_renders_vote_section` (new) covers
  the same assertion for the carousel-item code path.
- `LightboxCaptionTest`: three new tests for the lightbox vote
  section — present for logged-in user with image, absent for
  logged-out user, absent when no image is in scope.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* LightboxCaption: thread votes: through; suppress N+1 on profile-images

`AccountIntegrationTest#test_profile` failed with a Bullet N+1:
`Image => [:image_votes]` on `/account/profile/images`. The profile-
images reuse partial renders `Components::InteractiveImage.new(...,
votes: false)`, but the lightbox caption — embedded in the theater
button's `data-sub-html` via `BaseImage#lightbox_caption_... (continued)

6 of 6 new or added lines in 1 file covered. (100.0%)

39243 of 40675 relevant lines covered (96.48%)

674.73 hits per line

Jobs
ID Job ID Ran Files Coverage
1 26630754906.1 29 May 2026 10:00AM UTC 1029
96.48
GitHub Action Run
Source Files on build 26630754906
  • Tree
  • List 1029
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26630754906
  • e40f2e55 on github
  • Prev Build on main (#26609188726)
  • Next Build on main (#26631317870)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc