Update nonprofits/recurring_donations_controller to Rails v6 and jbuilder
This commit is contained in:
parent
94b2e8e282
commit
4b01c2aeb9
3 changed files with 6 additions and 2 deletions
|
@ -56,7 +56,11 @@ module Nonprofits
|
|||
|
||||
def show
|
||||
@recurring_donation = current_recurring_donation
|
||||
respond_to { |format| format.json }
|
||||
respond_to do |format|
|
||||
format.json do
|
||||
render locals: {recurring_donation: @recurring_donation}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def destroy
|
||||
|
|
|
@ -16,7 +16,7 @@ describe Nonprofits::RecurringDonationsController, type: :controller do
|
|||
end
|
||||
|
||||
describe 'show' do
|
||||
include_context :open_to_np_associate, :get, :show, nonprofit_id: :__our_np, id: '1', without_json_view: true
|
||||
include_context :open_to_np_associate, :get, :show, nonprofit_id: :__our_np, id: '1', with_status: 200
|
||||
end
|
||||
|
||||
describe 'destroy' do
|
||||
|
|
Loading…
Reference in a new issue