Host can make offer on listing#15
Open
stefankarlberg wants to merge 21 commits into
Open
Conversation
…to listing, 1/8 tests going green
…ontroller. Tests still red.
…e of columns in Offer model, adds show method to offers controller
…ew method show in listing-controller
…curate ones, removes empty lines. First test in scenario going green, 1/10
…tep definitions. Happy path all green
…essage saying you need to fill in all fields correctly
oliverochman
requested changes
May 10, 2019
…relevant step definition, deletes background steps in feature
oliverochman
requested changes
May 10, 2019
| end | ||
|
|
||
| def new | ||
| @offer = Offer.new(offer_params) |
Contributor
There was a problem hiding this comment.
do you need to use an instance variable here?
| end | ||
|
|
||
| def create | ||
| @listing = Listing.find(params[:listing_id]) |
Contributor
There was a problem hiding this comment.
do you need to use an instance variable here?
|
|
||
| def create | ||
| @listing = Listing.find(params[:listing_id]) | ||
| @offer = @listing.offers.create(offer_params) |
Contributor
There was a problem hiding this comment.
do you need to use an instance variable here?
Member
There was a problem hiding this comment.
Please explain what is the other option you tried @Carrosen
oliverochman
requested changes
May 10, 2019
| When I visit the landing page | ||
|
|
||
| Scenario: Host can successfully create an offer | ||
| Then I should see "Zane" |
Contributor
There was a problem hiding this comment.
unnecessary to test for this
| Then I should see "Zane" | ||
| When I click "Make an offer" within "Zane" section | ||
| Then I should be on the "Zane" listing page | ||
| Then I should see "Create your offer" |
| When I click "Make an offer" within "Zane" section | ||
| Then I should be on the "Zane" listing page | ||
| Then I should see "Create your offer" | ||
| And I fill in "Name" with "Steffe" |
| Then I should be on landing page | ||
|
|
||
| Scenario: Host can not create an offer when not all the fields are filled in. | ||
| When I click "Make an offer" within "Zane" section |
Contributor
There was a problem hiding this comment.
Same comments as above
…, all 113 test going green
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PT Story
Changes proposed in this pull request:
What we have learned working on this feature:
Screenshots