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

pulibrary / oawaiver / 11c952aa-d8e8-4073-941a-ba08eee9b0bb

24 Sep 2024 03:41PM UTC coverage: 70.281% (-28.5%) from 98.795%
11c952aa-d8e8-4073-941a-ba08eee9b0bb

push

circleci

jrgriffiniii
wip

525 of 747 relevant lines covered (70.28%)

9.14 hits per line

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

46.67
/app/helpers/waiver_infos_helper.rb
1
# frozen_string_literal: true
2

3
module WaiverInfosHelper
1✔
4
  def hidden_author_form_fields
1✔
5
    # generate input fields with class names that match the field names returned for employee docs
6
    # in the author engine
7
    tag = hidden_field(:waiver_info, :author_first_name, class: "first_name", id: nil)
1✔
8
    %i[author_last_name author_preferred_name author_email author_unique_id author_department].each do |prop|
1✔
9
      tag = tag.safe_concat(hidden_field(:waiver_info, prop, class: prop.to_s.sub(/^author_/, ""), id: nil))
5✔
10
    end
11
    tag
1✔
12
  end
13

14
  def properties_list(props)
1✔
15
    list = ""
×
16
    if @author
×
17
      props.delete("author_unique_id")
×
18
      list = tag.div("Author: #{empl_short @author}", class: "properties")
×
19
    end
20
    props.each do |k, v|
×
21
      elem = tag.div("#{k.to_s.titleize}: #{v}", class: "properties")
×
22
      list += elem
×
23
    end
24
    list.html_safe
×
25
  end
26
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

© 2025 Coveralls, Inc