diff options
Diffstat (limited to 'spec/models/ci/processable_spec.rb')
-rw-r--r-- | spec/models/ci/processable_spec.rb | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/spec/models/ci/processable_spec.rb b/spec/models/ci/processable_spec.rb index a199111b1e3..261eba73424 100644 --- a/spec/models/ci/processable_spec.rb +++ b/spec/models/ci/processable_spec.rb @@ -52,7 +52,11 @@ RSpec.describe Ci::Processable do let_it_be(:internal_job_variable) { create(:ci_job_variable, job: processable) } - let(:clone_accessors) { ::Ci::Build.clone_accessors.without(::Ci::Build.extra_accessors) } + let(:clone_accessors) do + %i[pipeline project ref tag options name allow_failure stage stage_idx trigger_request yaml_variables + when environment coverage_regex description tag_list protected needs_attributes job_variables_attributes + resource_group scheduling_type ci_stage partition_id id_tokens] + end let(:reject_accessors) do %i[id status user token_encrypted coverage runner artifacts_expire_at @@ -83,7 +87,8 @@ RSpec.describe Ci::Processable do resource resource_group_id processed security_scans author pipeline_id report_results pending_state pages_deployments queuing_entry runtime_metadata trace_metadata - dast_site_profile dast_scanner_profile stage_id].freeze + dast_site_profile dast_scanner_profile stage_id dast_site_profiles_build + dast_scanner_profiles_build].freeze end before_all do @@ -177,10 +182,7 @@ RSpec.describe Ci::Processable do Ci::Build.attribute_names.map(&:to_sym) + Ci::Build.attribute_aliases.keys.map(&:to_sym) + Ci::Build.reflect_on_all_associations.map(&:name) + - [:tag_list, :needs_attributes, :job_variables_attributes, :id_tokens] - - # ToDo: Move EE accessors to ee/ - ::Ci::Build.extra_accessors - - [:dast_site_profiles_build, :dast_scanner_profiles_build] + [:tag_list, :needs_attributes, :job_variables_attributes, :id_tokens] current_accessors.uniq! |