Adding angularjs payment method controller, updating payment method edit form

This commit is contained in:
Rob Harrington
2016-04-22 13:31:37 +10:00
parent 2d666caaf2
commit 385fd91e70
7 changed files with 15 additions and 12 deletions

View File

@@ -5,7 +5,7 @@ describe "ProvidersCtrl", ->
describe "initialising using a payment method without a type", ->
beforeEach ->
module 'ofn.admin'
module 'admin.paymentMethods'
scope = {}
paymentMethod =
type: null
@@ -18,7 +18,7 @@ describe "ProvidersCtrl", ->
describe "initialising using a payment method with a type", ->
beforeEach ->
module 'ofn.admin'
module 'admin.paymentMethods'
scope = {}
paymentMethod =
type: "NOT NULL"
@@ -27,4 +27,4 @@ describe "ProvidersCtrl", ->
ctrl = $controller 'ProvidersCtrl', {$scope: scope, paymentMethod: paymentMethod }
it "sets the include_html porperty on scope to some address", ->
expect(scope.include_html).toBe "/admin/payment_methods/show_provider_preferences?provider_type=NOT NULL;pm_id=#{paymentMethod.id};"
expect(scope.include_html).toBe "/admin/payment_methods/show_provider_preferences?provider_type=NOT NULL;pm_id=#{paymentMethod.id};"