-
Notifications
You must be signed in to change notification settings - Fork 16
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
Fixing order tests #37
base: master
Are you sure you want to change the base?
Conversation
…th and all associated process in relevant files - config/initializers, test_helper, application_controller, etc.
bEtsyWhat We're Looking ForManual testing
Code Review
Overall FeedbackGreat work overall! You've built a fully functional web store from top to bottom. This represents a huge amount of work, and you should be proud of yourselves!. I am particularly impressed by the way that y'all did the following:
I do see some room for improvement around...
Originally, you all have: <% @order.orderitem_ids.each do |id| %>
<% order_item = Orderitem.find_by(id: id)%>
<% product = Product.find_by(id: order_item.product_id) %>
<tr>
<td><%= product.name %></td>
<td><%= number_to_currency(product.price) %></td>
# ...
You can do the same code with <% @order.orderitems.each do |order_item| %>
<tr>
<td><%= order_item.product.name %></td>
<td><%= number_to_currency(order_item.product.price) %></td>
# ... bEtsy is a huge project on a very short timeline, and this feedback should not at all diminish the magnitude of what you've accomplished. Keep up the hard work! Only the person who submitted the PR will get an email about this feedback. Please let the rest of your team know about it. |
bEtsy
Congratulations! You're submitting your assignment! These comprehension questions should be answered by all members of your team, not by a single teammate.
Comprehension Questions