delete unused methods, add feature tests

This commit is contained in:
Rishabh Saxena 2016-07-15 02:46:31 +05:30
parent 3b4c7d70c0
commit 223a0eead9
7 changed files with 165 additions and 47 deletions

View file

@ -32,14 +32,6 @@ feature Registration do
expect(flash).to eq('Please pay here to purchase tickets.')
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'
select Date.current.year + 2, from: 'expiration_year'
fill_in 'card_verification_value', with: '123'
fill_in 'credit_card_number', with: '4242424242424242'
click_button 'Charge Card'
end
end
end