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

pulibrary / tigerdata-app / 5205f704-d89d-4c43-8cfa-9e6783edc33a

29 Feb 2024 07:04PM UTC coverage: 60.206% (-29.9%) from 90.092%
5205f704-d89d-4c43-8cfa-9e6783edc33a

push

circleci

jrgriffiniii
Ensuring that the storage usage and storage capacity is retrieved for
Mediaflux Projects and rendered on the "contents" Project View

11 of 34 new or added lines in 4 files covered. (32.35%)

451 existing lines in 34 files now uncovered.

935 of 1553 relevant lines covered (60.21%)

9.47 hits per line

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

37.5
/app/models/user_job.rb
1
# frozen_string_literal: true
2

3
class UserJob < ApplicationRecord
1✔
4
  def title
1✔
5
    "File Inventory for \"#{project_title}\""
×
6
  end
7

8
  def description
1✔
9
    "Requested #{created_datestamp}"
×
10
  end
11

12
  def completion
1✔
13
    "Completed #{completed_at}"
×
14
  end
15

16
  def complete?
1✔
17
    completed_at != nil
×
18
  end
19

20
  def self.create_and_link_to_user(job_id:, user:, job_title:)
1✔
UNCOV
21
    user_job = UserJob.where(job_id: job_id).first
×
UNCOV
22
    if user_job.nil?
×
UNCOV
23
      user_job = UserJob.create(job_id: job_id, project_title: job_title)
×
UNCOV
24
      user.user_jobs << user_job
×
UNCOV
25
      user.save!
×
26
    end
UNCOV
27
    user_job
×
28
  end
29
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