Skip to content
This repository was archived by the owner on Mar 8, 2020. It is now read-only.

Add test to partner_request_spec #7

Open
wants to merge 19 commits into
base: master
Choose a base branch
from

Conversation

ryanbla
Copy link

@ryanbla ryanbla commented Feb 19, 2019

Related to #2

Description

This PR addresses #2 Group 1, Bullet 1:

it disallows an item attribute if the quantity isn't set

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

  • Bug fix (non-breaking change which fixes an issue) -- new test

@ryanbla ryanbla marked this pull request as ready for review February 21, 2019 04:26
@ryanbla ryanbla self-assigned this Feb 22, 2019
@nihonjinrxs
Copy link
Member

@mdworken seems there's a question here. Can you help out?

@mdworken
Copy link
Collaborator

@ryanbla @nihonjinrxs looks like you all might have found a bug! I'll get a clearer answer to what's going on tonight.

@mdworken
Copy link
Collaborator

Can you fix the indentation for this file?

@ryanbla ryanbla changed the title [WIP] Add test to partner_request_spec Add test to partner_request_spec Mar 14, 2019
@ryanbla
Copy link
Author

ryanbla commented Mar 14, 2019

@mdworken can you please re-review. I think this is ready

@ryanbla ryanbla requested a review from mdworken March 14, 2019 19:57
@nihonjinrxs
Copy link
Member

@ryanbla you'll need to merge master into this branch again, as it's out of date again.

@nihonjinrxs
Copy link
Member

@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.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants