debian-mirror-gitlab/spec/support/shared_examples/models/concern/issuable_shared_examples.rb
2019-09-04 21:01:54 +05:30

8 lines
344 B
Ruby

shared_examples_for 'matches_cross_reference_regex? fails fast' do
it 'fails fast for long strings' do
# took well under 1 second in CI https://dev.gitlab.org/gitlab/gitlabhq/merge_requests/3267#note_172823
expect do
Timeout.timeout(3.seconds) { mentionable.matches_cross_reference_regex? }
end.not_to raise_error
end
end