-
Notifications
You must be signed in to change notification settings - Fork 15
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
Bakesy #23
base: master
Are you sure you want to change the base?
Bakesy #23
Conversation
"pull master changes"
merge with seed file
Merge branch 'master' of https://github.com/xLJohnsonx/betsy
Validations
Merge branch 'master' of https://github.com/xLJohnsonx/betsy
Merge branch 'master' of https://github.com/xLJohnsonx/betsy
Heya Devin, it looks like only part of the feedback form was submitted back
to us. Do you have more details on this before I pass it on?
…On Thu, Nov 8, 2018 at 3:38 PM UGH FINE ***@***.***> wrote:
bEtsy What We're Looking For
Feature Feedback
*Baseline*
Appropriate Git Usage with all members contributing yes
Answered comprehension questions yes
Trello board is created and utilized in project management yes
Heroku instance is online yes
*General*
Nested routes follow RESTful conventions
oAuth used for User authentication yes
Functionality restricted based on user roles
Products can be added and removed from cart
Users can look up past orders by ID
Merchants can add, edit and view their products
Errors are reported to the user
*Order Functionality*
Reduces products' inventory
Cannot order products that are out of stock
Changes order state
Clears current cart
*Database*
ERD includes all necessary tables and relationships
Table relationships
*Models*
Validation rules for Models
Business logic is in the models
*Controllers*
Controller Filters used to DRY up controller code
*Testing*
Model Testing
Controller Testing
Session Testing
SimpleCov at 90% for controller and model tests
*Front-end*
The app is styled to create an attractive user interface Good, but your
dashboard doesn't match the look and feel of the rest of the site. Colors
are different, and so are the fonts.
Content is organized with HTML5 semantic tags
CSS is DRY
*Overall* Only the person who submitted the PR will get an email about
this feedback. Please let the rest of your team know about it.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#23 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AH0TSrEJJnlkBPF-THOTJPhu5okphC5dks5utMCDgaJpZM4X9G_0>
.
|
Don't pass it on yet! I hit the submit button WAY early so there is a lot
more feedback I want to give. Ya'll can expect to see it tomorrow.
…On Thu, Nov 8, 2018 at 8:57 PM Liz ***@***.***> wrote:
Heya Devin, it looks like only part of the feedback form was submitted back
to us. Do you have more details on this before I pass it on?
On Thu, Nov 8, 2018 at 3:38 PM UGH FINE ***@***.***> wrote:
> bEtsy What We're Looking For
> Feature Feedback
> *Baseline*
> Appropriate Git Usage with all members contributing yes
> Answered comprehension questions yes
> Trello board is created and utilized in project management yes
> Heroku instance is online yes
> *General*
> Nested routes follow RESTful conventions
> oAuth used for User authentication yes
> Functionality restricted based on user roles
> Products can be added and removed from cart
> Users can look up past orders by ID
> Merchants can add, edit and view their products
> Errors are reported to the user
> *Order Functionality*
> Reduces products' inventory
> Cannot order products that are out of stock
> Changes order state
> Clears current cart
> *Database*
> ERD includes all necessary tables and relationships
> Table relationships
> *Models*
> Validation rules for Models
> Business logic is in the models
> *Controllers*
> Controller Filters used to DRY up controller code
> *Testing*
> Model Testing
> Controller Testing
> Session Testing
> SimpleCov at 90% for controller and model tests
> *Front-end*
> The app is styled to create an attractive user interface Good, but your
> dashboard doesn't match the look and feel of the rest of the site. Colors
> are different, and so are the fonts.
> Content is organized with HTML5 semantic tags
> CSS is DRY
> *Overall* Only the person who submitted the PR will get an email about
> this feedback. Please let the rest of your team know about it.
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#23 (comment)>, or
mute
> the thread
> <
https://github.com/notifications/unsubscribe-auth/AH0TSrEJJnlkBPF-THOTJPhu5okphC5dks5utMCDgaJpZM4X9G_0
>
> .
>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#23 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AFM9zL6YDMBglC_3FEFbqC9xMvlO_nfFks5utQszgaJpZM4X9G_0>
.
|
bEtsyWhat We're Looking For
Only the person who submitted the PR will get an email about this feedback. Please let the rest of your team know about it. |
<% end %> | ||
</div> | ||
<div class="col-md-3 add-review-btn"> | ||
<span><%= link_to "Write A Review", new_product_review_path(@product), class:"btn btn-danger" %> |
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.
This would be a really good place to try the <aside>
tag!
<div class="row"> | ||
<div class="col-md-12"> | ||
<p class="description"> | ||
Tasting Notes: <%= @product.description %> |
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.
Things like tasting notes here might be a good candidate for the <details>
tag.
get cart_path(order_id) | ||
|
||
must_respond_with :not_found | ||
|
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.
Tests for your cart specifically might try:
- Does it handle things being added correctly?
- Do items get removed properly?
- Can I over-order items by having two carts check out the last of a particular item?
|
||
describe CategoriesController do | ||
it "should get index" do | ||
get categories_index_url |
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.
categories_index_url
is not the correct path name, so none of these tests are doing what you would like them to do, which means your tests don't adequately test your code. Making sure that the named path actually matches the route that you want to call is important! You wanted either categories_path
or categories_url
it "must be invalid without a customer name " do | ||
expect(order.valid?).must_equal false | ||
expect(order.errors.messages).must_include :cust_email | ||
end |
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.
I'm pretty sure that this end
is premature, and it breaks every test that follows.
value(response).must_be :success? | ||
end | ||
|
||
it "should get create" 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.
Your create path uses the Post verb, so this test is malformed.
|
||
|
||
end | ||
|
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.
Where are the tests for your custom logic? Most of your models have some sort of custom logic, but the methods aren't getting tested at all.
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