mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
For check payment method, display description after purchase for use with EFT
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
Deface::Override.new(:virtual_path => "spree/shared/_order_details",
|
||||
:replace => "div.payment-info",
|
||||
:partial => "spree/shared/order_details_payment_info",
|
||||
:name => "order_details_payment_info")
|
||||
@@ -0,0 +1,2 @@
|
||||
- if order.payment_method.type == "Spree::PaymentMethod::Check"
|
||||
= simple_format order.payment_method.description
|
||||
@@ -36,7 +36,7 @@ feature %q{
|
||||
c = Spree::Country.find_by_name('Australia')
|
||||
Spree::ZoneMember.create(:zoneable => c, :zone => @zone)
|
||||
create(:itemwise_shipping_method, zone: @zone)
|
||||
create(:payment_method)
|
||||
create(:payment_method, :description => 'Cheque payment method')
|
||||
end
|
||||
|
||||
|
||||
@@ -90,7 +90,11 @@ feature %q{
|
||||
# -- Checkout: Payment
|
||||
click_button 'Save and Continue'
|
||||
|
||||
# -- Checkout: Order complete
|
||||
page.should have_content('Your order has been processed successfully')
|
||||
page.should have_content('Cheque payment method')
|
||||
|
||||
|
||||
# page.should have_content('Your order will be available on:')
|
||||
# page.should have_content('On Tuesday, 4 PM')
|
||||
# page.should have_content('12 Bungee Rd, Carion')
|
||||
|
||||
Reference in New Issue
Block a user