From c675f6c384c86b8e6eaccd86f4ce0fcb2527d875 Mon Sep 17 00:00:00 2001 From: Suzanne Vogt Date: Mon, 7 Mar 2022 13:28:52 -0500 Subject: [PATCH] Salesforce - doi_estimate_year_one field. (Review comments.) --- app/models/provider.rb | 4 ++-- spec/models/provider_spec.rb | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/models/provider.rb b/app/models/provider.rb index 92effeeee..f742696a4 100644 --- a/app/models/provider.rb +++ b/app/models/provider.rb @@ -840,7 +840,7 @@ def activity_id_not_changed end def doi_estimate_field - if member_type === "consortium_organization" + if member_type == "consortium_organization" begin num = Integer(doi_estimate) if num < 0 @@ -947,7 +947,7 @@ def set_defaults self.billing_information = {} if billing_information.blank? self.consortium_id = nil unless member_type == "consortium_organization" self.non_profit_status = "non-profit" if non_profit_status.blank? - if member_type === "consortium_organization" + if member_type == "consortium_organization" self.doi_estimate = doi_estimate.to_i else self.doi_estimate = 0 diff --git a/spec/models/provider_spec.rb b/spec/models/provider_spec.rb index 36f42172b..dc220a3de 100644 --- a/spec/models/provider_spec.rb +++ b/spec/models/provider_spec.rb @@ -1,7 +1,6 @@ # frozen_string_literal: true require "rails_helper" -require "pp" describe Provider, type: :model do let(:provider) { create(:provider) }