-
Notifications
You must be signed in to change notification settings - Fork 21
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
Valentine Kopotchel - 2 #56
base: master
Are you sure you want to change the base?
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.
Some files could not be reviewed due to errors:
Error: We found some problems with your configuration file: [/IrresponsibleMo...
Error: We found some problems with your configuration file: [/IrresponsibleModule] key 'IrresponsibleModule:' is undefined., [/DuplicateMethodCall] key 'DuplicateMethodCall:' is undefined., [/UtilityFunction] key 'UtilityFunction:' is undefined.
require_relative '../config/environment' | ||
require 'rails/test_help' | ||
|
||
class ActiveSupport::TestCase |
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.
Style/ClassAndModuleChildren: Use nested module/class definitions instead of compact style.
click_on "Destroy", match: :first | ||
end | ||
|
||
assert_text "Ingestion was successfully destroyed" |
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.
Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
test "destroying a Ingestion" do | ||
visit ingestions_url | ||
page.accept_confirm do | ||
click_on "Destroy", match: :first |
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.
Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
click_on "Back" | ||
end | ||
|
||
test "destroying a Ingestion" do |
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.
Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
click_on "Update Ingestion" | ||
|
||
assert_text "Ingestion was successfully updated" | ||
click_on "Back" |
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.
Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
click_on "Back" | ||
end | ||
|
||
test "updating a Ingestion" do |
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.
Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
click_on "Create Ingestion" | ||
|
||
assert_text "Ingestion was successfully created" | ||
click_on "Back" |
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.
Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
fill_in "User", with: @ingestion.user_id | ||
click_on "Create Ingestion" | ||
|
||
assert_text "Ingestion was successfully created" |
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.
Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
fill_in "Dish", with: @ingestion.dish_id | ||
fill_in "Name", with: @ingestion.name | ||
fill_in "User", with: @ingestion.user_id | ||
click_on "Create Ingestion" |
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.
Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
||
fill_in "Dish", with: @ingestion.dish_id | ||
fill_in "Name", with: @ingestion.name | ||
fill_in "User", with: @ingestion.user_id |
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.
Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
Should I replace all the code by generators? Or it is OK? |
And is there a way to use new hash syntax in Slim views? |
Name
Valentine Kopotchel
Homework#
2
Link to video with demo
https://youtu.be/XZnAYju9DWM
Comment
Level 1 and 2.and 3
Checklist