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

pulibrary / tigerdata-app / 529f7cba-0651-41c2-9045-ff17f0a5a349

21 Oct 2025 09:43PM UTC coverage: 86.877%. Remained the same
529f7cba-0651-41c2-9045-ff17f0a5a349

Pull #2070

circleci

bess
Remove tests for special production behavior
Pull Request #2070: Remove tests for special behavior in production

2615 of 3010 relevant lines covered (86.88%)

340.18 hits per line

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

100.0
/app/controllers/new_project_wizard/review_and_submit_controller.rb
1
# frozen_string_literal: true
2
class NewProjectWizard::ReviewAndSubmitController < RequestWizardsController
3✔
3
  layout "wizard_last"
3✔
4

5
  protected
3✔
6

7
    def render_current
3✔
8
      @request_presenter = RequestPresenter.new(@request_model)
26✔
9
      @request_model.valid_to_submit?
26✔
10
      @form_url = new_project_review_and_submit_save_path(@request_model)
26✔
11
      render "/new_project_wizard/review_and_submit"
26✔
12
    end
13

14
    def render_next
3✔
15
      if @request_model.valid_to_submit?
8✔
16
        @request_model.state = Request::SUBMITTED
6✔
17
        @request_model.save
6✔
18
        TigerdataMailer.with(request_id: @request_model.id, submitter: current_user).request_creation.deliver_now
6✔
19
        redirect_to request_submit_path
6✔
20
      else
21
        stubbed_message = "Please resolve errors before submitting your request"
2✔
22
        flash[:notice] = stubbed_message
2✔
23
        redirect_to new_project_review_and_submit_path(request_model)
2✔
24
      end
25
    end
26

27
    def render_back
3✔
28
      # TODO: redirect back to additional information when that screen is implemented
29
      # redirect_to new_project_additional_information_related_resources_path(request_model)
30
      redirect_to new_project_storage_and_access_path(request_model)
3✔
31
    end
32
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