refactor payment#purchase method, improve environment variable names
This commit is contained in:
parent
c4d934d711
commit
f00e051eff
8 changed files with 64 additions and 39 deletions
|
|
@ -1,5 +1,7 @@
|
|||
FactoryGirl.define do
|
||||
factory :payment do
|
||||
user
|
||||
conference
|
||||
first_name { "#{Faker::Hipster.word} abc" }
|
||||
last_name { "#{Faker::Hipster.word} xyz" }
|
||||
credit_card_number '4242424242424111'
|
||||
|
|
@ -17,4 +19,3 @@ FactoryGirl.define do
|
|||
credit_card_number '4242424242424333'
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue