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

pulibrary / tigerdata-app / f6623dae-f784-4523-b2c4-437cffc4d48d

22 Oct 2025 07:24PM UTC coverage: 91.045% (-0.1%) from 91.178%
f6623dae-f784-4523-b2c4-437cffc4d48d

Pull #2086

circleci

bess
Fix for nil value in test
Pull Request #2086: Fix for nil value in test

2735 of 3004 relevant lines covered (91.05%)

376.07 hits per line

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

100.0
/app/controllers/project_import_controller.rb
1
# frozen_string_literal: true
2
class ProjectImportController < ApplicationController
1✔
3
  def run
1✔
4
    if current_user.eligible_sysadmin?
3✔
5
      @results = ProjectImport.run_with_report(mediaflux_session: current_user.mediaflux_session).sort
2✔
6
      created_count = @results.count { |out| out.starts_with?("Created") }
23✔
7
      notice = "Created #{created_count} #{'project'.pluralize(created_count)}."
2✔
8
      flash[:notice] = notice
2✔
9
    else
10
      flash[:alert] = I18n.t(:access_denied)
1✔
11
      redirect_to dashboard_path
1✔
12
    end
13
  end
14
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