use select instead of fill_in capybara

This commit is contained in:
Rishabh Saxena 2016-07-07 19:28:15 +05:30
parent 1af6fa5ad1
commit 5b8e7ade2f

View file

@ -35,7 +35,7 @@ feature Registration do
fill_in 'first_name', with: 'foo'
fill_in 'last_name', with: 'bar'
fill_in 'expiration_year', with: Date.current.year + 2
select Date.current.year + 2, from: 'expiration_year'
fill_in 'card_verification_value', with: '123'
fill_in 'credit_card_number', with: '4242424242424242'