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

pulibrary / pdc_describe / 4e4e59fc-9df4-4838-9fd4-6c7ea33cdb7c

07 Apr 2025 06:36PM UTC coverage: 1.283% (-94.6%) from 95.862%
4e4e59fc-9df4-4838-9fd4-6c7ea33cdb7c

Pull #1994

circleci

hectorcorrea
Switched to use the autocomplete that we aleady use for ROR. Integrated it with the existing logic for creators
Pull Request #1994: Started adding auto complete to contributors

0 of 46 new or added lines in 2 files covered. (0.0%)

4806 existing lines in 74 files now uncovered.

65 of 5065 relevant lines covered (1.28%)

0.01 hits per line

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

0.0
/app/models/group_option.rb
1
# frozen_string_literal: true
UNCOV
2
class GroupOption < ApplicationRecord
×
UNCOV
3
  EMAIL_MESSAGES = 0
×
4

UNCOV
5
  belongs_to :group, class_name: "Group"
×
UNCOV
6
  belongs_to :user
×
7

UNCOV
8
  enum :option_type, { email_messages: 0 }
×
9

10
  # Provides a human-readable label for the type of the option
11
  # @note This should perhaps in the future parse from a YAML config. file
12
  # @return [String] the label
UNCOV
13
  def self.option_type_labels
×
UNCOV
14
    {
×
UNCOV
15
      email_messages: "E-mail messages for Group notifications"
×
UNCOV
16
    }
×
UNCOV
17
  end
×
18

19
  # Finds the label for the option type value set for a given Model
20
  # @param [Integer] value the option type value
21
  # @return [String] the label
UNCOV
22
  def self.find_option_type_label(value)
×
UNCOV
23
    option_type_labels.fetch(value.to_sym, nil)
×
UNCOV
24
  end
×
25

26
  # Finds the label for the option type
27
  # @return [String] the label
UNCOV
28
  def option_type_label
×
UNCOV
29
    self.class.find_option_type_label(option_type)
×
UNCOV
30
  end
×
UNCOV
31
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