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

TrestleAdmin / trestle / 18007157280

25 Sep 2025 12:21PM UTC coverage: 91.675% (+0.2%) from 91.449%
18007157280

Pull #548

github

spohlenz
Update unprocessable_entity -> unprocessable_content in controller actions
Pull Request #548: Use :unprocessable_content response status when using Rack 3.1

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

6 existing lines in 2 files now uncovered.

2841 of 3099 relevant lines covered (91.67%)

329.33 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

75.0
/lib/trestle/debug_errors.rb
1
module Trestle
7✔
2
  class DebugErrors
7✔
3
    def initialize(errors)
7✔
4
      @errors = errors
7✔
5
    end
6

7
    def any?
7✔
8
      @errors.any?
×
9
    end
10

11
    def each
7✔
12
      if defined?(ActiveModel::Error)
7✔
13
        # Rails 6.1 introduces a unified Error class
14
        @errors.each do |error|
7✔
15
          yield error.attribute, error.message
21✔
16
        end
17
      else
UNCOV
18
        @errors.each do |error, message|
×
UNCOV
19
          yield error, message
×
20
        end
21
      end
22
    end
23
  end
24
end
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