add more tests
This commit is contained in:
parent
c0c84b9dbf
commit
38ae24c6b3
6 changed files with 157 additions and 9 deletions
11
spec/factories/payments.rb
Normal file
11
spec/factories/payments.rb
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
FactoryGirl.define do
|
||||
factory :payment do
|
||||
first_name { "#{Faker::Hipster.word} abc" }
|
||||
last_name { "#{Faker::Hipster.word} xyz" }
|
||||
credit_card_number { '4242424242424242' }
|
||||
card_verification_value { '123' }
|
||||
expiration_month { '06' }
|
||||
expiration_year { Date.current.year + 2 }
|
||||
amount { '10' }
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue