diff options
Diffstat (limited to 'spec/support/helpers/trigger_helpers.rb')
-rw-r--r-- | spec/support/helpers/trigger_helpers.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/support/helpers/trigger_helpers.rb b/spec/support/helpers/trigger_helpers.rb index fa4f499b900..67c62cf4869 100644 --- a/spec/support/helpers/trigger_helpers.rb +++ b/spec/support/helpers/trigger_helpers.rb @@ -27,7 +27,10 @@ module TriggerHelpers expected_timing, expected_events = fires_on.first expect(timing).to eq(expected_timing.to_s) expect(events).to match_array(Array.wrap(expected_events)) - expect(definition).to eq("execute procedure #{fn_name}()") + + # TODO: Update CREATE TRIGGER syntax to use EXECUTE FUNCTION + # https://gitlab.com/gitlab-org/gitlab/-/issues/227089 + expect(definition).to match(%r{execute (?:procedure|function) #{fn_name}()}) end private |