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

pulibrary / tigerdata-app / a25a9344-105b-44fa-8cbb-8294c0216121

30 Oct 2025 08:44PM UTC coverage: 64.982% (-22.7%) from 87.65%
a25a9344-105b-44fa-8cbb-8294c0216121

Pull #2128

circleci

hectorcorrea
Started updating the project show page to display metadata from Mediaflux
Pull Request #2128: Project Show page now displays metadata straight from Mediaflux

0 of 37 new or added lines in 3 files covered. (0.0%)

757 existing lines in 36 files now uncovered.

2134 of 3284 relevant lines covered (64.98%)

168.86 hits per line

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

50.0
/app/helpers/emulator_helper.rb
1
# frozen_string_literal: true
2

3
require "yaml"
2✔
4

5
module EmulatorHelper
2✔
6
  def emulator_content
2✔
7
    return if current_user.nil? || current_user.id.nil?
10✔
8
    @yaml_data = YAML.load_file("config/emulator.yml")
10✔
9
    return false if @yaml_data[Rails.env].nil? || Rails.env.production?
10✔
10
    # return false unless current_page?("/")
11
    @emulator_title = @yaml_data[Rails.env]["title"]
10✔
12
    @emulator_body = @yaml_data[Rails.env]["body"]
10✔
13
    @emulator_alt_title = @yaml_data[Rails.env]["alt_title"]
10✔
14
    @emulator_alt_body = @yaml_data[Rails.env]["alt_body"]
10✔
15
    @absolute_user = User.find(current_user.id)
10✔
16
  end
17

18
  def homepage?
2✔
UNCOV
19
    return true if current_page?("/dashboard")
×
20
  end
21

22
  def otherpage?
2✔
UNCOV
23
    @current_role = check_role
×
UNCOV
24
    return true unless current_page?("/dashboard")
×
25
  end
26

27
  def check_role
2✔
UNCOV
28
    @role = nil
×
UNCOV
29
    @role = if current_user.eligible_sponsor?
×
30
              "Data Sponsor"
×
UNCOV
31
            elsif current_user.eligible_manager?
×
32
              "Data Manager"
×
UNCOV
33
            elsif current_user.eligible_data_user? && current_user.trainer == false
×
34
              "Data User"
×
UNCOV
35
            elsif current_user.sysadmin
×
UNCOV
36
              "System Administrator"
×
37
            else
38
              "Trainer"
×
39
            end
UNCOV
40
    @role
×
41
  end
42
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