Skip to content

Commit f53a6d3

Browse files
committed
Fix up specs for rails 4.2
1 parent 3ab3d25 commit f53a6d3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

spec/controllers/payola/cards_controller_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,11 @@ module Payola
137137
expect(flash[:alert]).to eq "You cannot modify this customer."
138138
end
139139

140-
it "should throw error if controller doesn't define payola_can_modify_subscription?" do
140+
it "should throw error if controller doesn't define payola_can_modify_customer?" do
141141
controller.instance_eval('undef :payola_can_modify_customer?')
142142

143143
expect {
144-
delete :destroy, id: customer.sources.first.id, customer_id: customer.id
144+
delete :destroy, params: { id: customer.sources.first.id, customer_id: customer.id }
145145
}.to raise_error(NotImplementedError)
146146
end
147147
end

spec/controllers/payola/subscriptions_controller_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ module Payola
233233
controller.instance_eval('undef :payola_can_modify_subscription?')
234234

235235
expect {
236-
post :update_card, guid: @subscription.guid, stripeToken: 'tok_1234'
236+
post :update_card, params: { guid: @subscription.guid, stripeToken: 'tok_1234' }
237237
}.to raise_error(NotImplementedError)
238238
end
239239
end

0 commit comments

Comments
 (0)