Browse Source

remove unused stuff

pull/761/head
Dushan Despotovic 3 years ago
parent
commit
b1ae8c6d0e
  1. 1
      app/controllers/schemes_controller.rb
  2. 2
      spec/mailers/devise_notify_mailer_spec.rb

1
app/controllers/schemes_controller.rb

@ -173,7 +173,6 @@ private
full_params = required_params[:arrangement_type] == "D" && required_params[:owning_organisation_id].present? ? required_params.merge(managing_organisation_id: required_params[:owning_organisation_id]) : required_params
full_params[:sensitive] = full_params[:sensitive].to_i if full_params[:sensitive]
# full_params[:support_services_provider] = full_params[:support_services_provider].to_i unless full_params[:support_services_provider] && full_params[:support_services_provider].empty?
if current_user.data_coordinator?
full_params[:owning_organisation_id] = current_user.organisation_id

2
spec/mailers/devise_notify_mailer_spec.rb

@ -1,7 +1,7 @@
require "rails_helper"
RSpec.describe DeviseNotifyMailer do
xdescribe "Intercept mail" do
describe "Intercept mail" do
let(:notify_client) { instance_double(Notifications::Client) }
let(:devise_notify_mailer) { described_class.new }
let(:organisation) { FactoryBot.create(:organisation) }

Loading…
Cancel
Save