repair tests and move method belonging to controller
This commit is contained in:
parent
38ae24c6b3
commit
c57a8a1d00
6 changed files with 26 additions and 49 deletions
|
|
@ -57,4 +57,9 @@ class Payment < ActiveRecord::Base
|
|||
self.status = 'success'
|
||||
response.success?
|
||||
end
|
||||
|
||||
# method to test `purchase` method
|
||||
def self.make_payment(user, conference, price_in_cents, payment)
|
||||
payment.purchase(user, conference, price_in_cents)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue