use full_name instead of first and last name, test changes, schema improvements
This commit is contained in:
parent
f00e051eff
commit
6d8605073f
10 changed files with 25 additions and 81 deletions
|
|
@ -14,9 +14,7 @@ describe Payment do
|
|||
expect(build(:payment)).to be_valid
|
||||
end
|
||||
|
||||
it { is_expected.to validate_presence_of(:first_name) }
|
||||
|
||||
it { is_expected.to validate_presence_of(:last_name) }
|
||||
it { is_expected.to validate_presence_of(:full_name) }
|
||||
|
||||
it { is_expected.to validate_presence_of(:credit_card_number) }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue