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) }