For check payment method, display description after purchase for use with EFT

This commit is contained in:
Rohan Mitchell
2012-06-29 15:27:30 +10:00
parent e74f9054ae
commit cec834589f
3 changed files with 11 additions and 1 deletions

View File

@@ -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")

View File

@@ -0,0 +1,2 @@
- if order.payment_method.type == "Spree::PaymentMethod::Check"
= simple_format order.payment_method.description

View File

@@ -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')