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
|
|
@ -33,8 +33,7 @@ feature Registration do
|
|||
purchase = TicketPurchase.where(user_id: participant.id, ticket_id: ticket.id).first
|
||||
expect(purchase.quantity).to eq(2)
|
||||
|
||||
fill_in 'first_name', with: 'foo'
|
||||
fill_in 'last_name', with: 'bar'
|
||||
fill_in 'full_name', with: 'foo'
|
||||
select Date.current.year + 2, from: 'expiration_year'
|
||||
fill_in 'card_verification_value', with: '123'
|
||||
fill_in 'credit_card_number', with: '4242424242423333'
|
||||
|
|
@ -61,8 +60,7 @@ feature Registration do
|
|||
purchase = TicketPurchase.where(user_id: participant.id, ticket_id: ticket.id).first
|
||||
expect(purchase.quantity).to eq(2)
|
||||
|
||||
fill_in 'first_name', with: 'foo'
|
||||
fill_in 'last_name', with: 'bar'
|
||||
fill_in 'full_name', with: 'foo'
|
||||
select Date.current.year + 2, from: 'expiration_year'
|
||||
fill_in 'card_verification_value', with: '123'
|
||||
fill_in 'credit_card_number', with: '4242424242422222'
|
||||
|
|
@ -89,8 +87,7 @@ feature Registration do
|
|||
purchase = TicketPurchase.where(user_id: participant.id, ticket_id: ticket.id).first
|
||||
expect(purchase.quantity).to eq(2)
|
||||
|
||||
fill_in 'first_name', with: 'foo'
|
||||
fill_in 'last_name', with: 'bar'
|
||||
fill_in 'full_name', with: 'foo'
|
||||
select Date.current.year + 2, from: 'expiration_year'
|
||||
fill_in 'card_verification_value', with: '123'
|
||||
fill_in 'credit_card_number', with: '4242424242421111'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue