Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added calculator new specs; fixed controller; #958

Merged
merged 2 commits into from
Nov 27, 2024

Conversation

ktpe
Copy link
Contributor

@ktpe ktpe commented Nov 19, 2024

dev

JIRA

Code reviewers

Second Level Review

Summary of issue

ToDo

Summary of change

added tests for Calculalor new.
Changed the code inside the Calculator controller.

Testing approach

ToDo

CHECK LIST

  • СI passed
  • Сode coverage >=95%
  • PR is reviewed manually again (to make sure you have 100% ready code)
  • All reviewers agreed to merge the PR
  • I've checked new feature as logged in and logged out user if needed
  • PR meets all conventions

@@ -1,7 +1,6 @@
# frozen_string_literal: true

class Account::CalculatorsController < Account::BaseController
before_action :resource, only: [:edit, :update, :destroy]
load_and_authorize_resource
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we should skip "load_and_authorize_resource", because we load resources and have only user aka Admin.

Copy link

codecov bot commented Nov 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.29%. Comparing base (9130d91) to head (0d8eb31).
Report is 39 commits behind head on calculators-constructor.

Additional details and impacted files
@@                     Coverage Diff                     @@
##           calculators-constructor     #958      +/-   ##
===========================================================
+ Coverage                    83.98%   84.29%   +0.30%     
===========================================================
  Files                           65       65              
  Lines                          974      974              
===========================================================
+ Hits                           818      821       +3     
+ Misses                         156      153       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ktpe ktpe merged commit 62610c8 into calculators-constructor Nov 27, 2024
5 checks passed
@ktpe ktpe deleted the new_calc_specs branch November 27, 2024 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants