This repository was archived by the owner on Mar 8, 2020. It is now read-only.
forked from rubyforgood/partner
-
Notifications
You must be signed in to change notification settings - Fork 0
Add test to partner_request_spec #7
Open
ryanbla
wants to merge
19
commits into
master
Choose a base branch
from
2-add-tests-group-1-bullet-1
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains 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
…y isn't set in partner_request_spec
@mdworken seems there's a question here. Can you help out? |
@ryanbla @nihonjinrxs looks like you all might have found a bug! I'll get a clearer answer to what's going on tonight. |
…kto_classes fix line item removal bug
…ation-email Spelling corrections partner invitation email
…associated-to-partner-request Validate items when validating a partner request
added xs adult brief size to hash
Add NDBN agency type classification drop down form
Can you fix the indentation for this file? |
@mdworken can you please re-review. I think this is ready |
@ryanbla you'll need to merge master into this branch again, as it's out of date again. |
@mdworken when you get a chance, please review this again. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Related to #2
Description
This PR addresses #2 Group 1, Bullet 1:
This is my attempt to write a test that the
PartnerRequest
disallows an item attribute if the quantity isn't set on an item in the request.from my understanding I am supposed to have a nil value for quantity and try to modify another value on the request. The problem is item.rb disallows quantity from being less than 1.
Am I misunderstanding this?
Ive tried setting partner_request_with_items' quantity to nil and then trying to modify the name.
I would expect partner_request_with_items.save to be false and to return an error message.
this is returning true and i think its because quantity is not being set to nil.
Type of change