[Rails5] ArgumentError: Before process_action callback :reject_blocked has not been defined
Note: add
rails5to a branch name to trigger rails5 specific CI jobs.
https://gitlab.com/gitlab-org/gitlab-ee/-/jobs/77064941
An error occurred while loading ./ee/spec/controllers/projects/vulnerability_feedback_controller_spec.rb.
Failure/Error: raise ArgumentError, "#{type.to_s.capitalize} #{name} callback #{filter.inspect} has not been defined"
ArgumentError:
Before process_action callback :authenticate_user! has not been defined
# ./ee/app/controllers/projects/vulnerability_feedback_controller.rb:5:in `<class:VulnerabilityFeedbackController>'
# ./ee/app/controllers/projects/vulnerability_feedback_controller.rb:1:in `<top (required)>'
# ./ee/spec/controllers/projects/vulnerability_feedback_controller_spec.rb:3:in `<top (required)>'
An error occurred while loading ./ee/spec/controllers/unsubscribes_controller_spec.rb.
Failure/Error: raise ArgumentError, "#{type.to_s.capitalize} #{name} callback #{filter.inspect} has not been defined"
ArgumentError:
Before process_action callback :reject_blocked has not been defined
# ./ee/app/controllers/unsubscribes_controller.rb:2:in `<class:UnsubscribesController>'
# ./ee/app/controllers/unsubscribes_controller.rb:1:in `<top (required)>'
# ./ee/spec/controllers/unsubscribes_controller_spec.rb:3:in `<top (required)>'
Run options: exclude {:geo=>true}
==> Setting up GitLab Shell...
GitLab Shell setup in 0.421554943 seconds...
==> Setting up Gitaly...
Gitaly setup in 9.0688e-05 seconds...
Knapsack report was generated. Preview:
{
}
Knapsack global time execution for tests: 0s
Finished in 1.57 seconds (files took 30.76 seconds to load)
0 examples, 0 failures, 2 errors occurred outside of examples
! Generating reports is disabled. To enable it, please set the `FLAKY_RSPEC_GENERATE_REPORT=1` !