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

praxis / praxis / #764

17 Jul 2023 04:35PM UTC coverage: 39.085% (-21.2%) from 60.271%
#764

push

coveralls-ruby

web-flow
check default_for_null to expose it as nullable if that's the default behavior, regardless of no null: key passed in in an attribute (#396)

Co-authored-by: Josep M. Blanquer <blanquer@C02F20XQMD6W.local>

1359 of 3477 relevant lines covered (39.09%)

0.61 hits per line

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

80.0
/lib/praxis/types/splattable_string_array.rb
1
# frozen_string_literal: true
2

3
module Praxis
1✔
4
  module Types
1✔
5
    class SplattableStringArray < Attributor::Collection
1✔
6
      # Make a type, to allow to load the value, as s single string, if it isn't a numerable
7
      # This way we can do displayable: 'foobar' , or displayable: ['one', 'two']
8
      def self.decode_string(value, _context)
1✔
9
        Array(value)
×
10
      end
11
    end
12
  end
13
end
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc