-
Notifications
You must be signed in to change notification settings - Fork 0
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
Manual input test #23
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well done with the task and tests!
Please look at comments, especially about "Blood" test naming and SOLID.
Also, please target develop
as a branch for all feature requests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well done in LabTest controller.
Almost ready for being approved.
Please make sure to answer and cover all comments left.
…st with a user rights
…ving array with a current user
@VoldemLive Well done! So only set_user issue left. |
got it and fixed. |
@VoldemLive where? The error appears when you haven't set a user properly here. So that user_id is nested in lab_test. You need to handle this. You can just extract it from |
you are right, rewrited: in a few sec will push fixes |
@VoldemLive Great! One question: what if there is no What do you think about this? def set_user
if current_user.full_access_roles_can? && lab_test_params[:user_id].present?
User.find(lab_test_params[:user_id])
else
current_user
end
end This will cover both of those cases. |
hmm ... we still need to check it in "if" before, or we will crach the app |
Exactly! |
@VoldemLive Well done with all of fixes and changes! Huge gratz on merging your first pull request! |
Thank you Anton for the persistence and patience in helping beginners. I need to drink )))))) |
Manual Input Blood Test Results Feature
Features
Create new blood test with:
Validation rules:
UI Features:
Test Plan
Unit Tests:
Integration Tests:
Feature Tests:
Edge Cases:
TEST RESULTS:
...Capybara starting Puma...
.....................
Finished in 5.04 seconds (files took 1.7 seconds to load)
24 examples, 0 failures