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

MushroomObserver / mushroom-observer / 28757345775
99%
main: 99%

Build:
Build:
LAST BUILD BRANCH: jdc-fix-4706-url-with-unimportable-iconic-taxon
DEFAULT BRANCH: main
Ran 05 Jul 2026 10:44PM UTC
Jobs 1
Files 1722
Run time 3min
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

05 Jul 2026 10:40PM UTC coverage: 98.54% (+0.004%) from 98.536%
28757345775

Pull #4688

github

nimmolo
Remove User.current from controller and integration tests

Extends MushroomObserver/NoUserCurrentInViews to test/controllers,
test/views, test/integration, test/system, test/mailers,
test/components, and the shared *_test_case.rb/*_extensions.rb files,
then fixes every offense the wider net turned up:

- Controller tests read the controller's own current_user (set by a
  real request dispatch) or the fixture already known to be logged in,
  instead of the thread-local global.
- Admin::SessionControllerTest's three assertions taken right after
  login (before any request dispatch) check session[:user_id] instead,
  since current_user isn't set until autologin's before_action runs.
- Capybara integration tests get a shared rack_session helper
  (CapybaraSessionExtensions) that reads the real server-side session
  hash via the rack_test driver, preserving the "did the switch
  actually happen server-side" check rather than just trusting
  rendered banner text.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Pull Request #4688: Close remaining User.current reads in controllers/views; drop cop exemptions

9 of 13 new or added lines in 7 files covered. (69.23%)

51503 of 52266 relevant lines covered (98.54%)

748.58 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
0.0
0.0% lib/rubocop/cop/mushroom_observer/no_user_current_in_views.rb
Jobs
ID Job ID Ran Files Coverage
1 28757345775.1 05 Jul 2026 10:44PM UTC 1722
98.54
GitHub Action Run
Source Files on build 28757345775
  • Tree
  • List 1722
  • Changed 10
  • Source Changed 10
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #28757345775
  • Pull Request #4688
  • PR Base - main (#28756659637)
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