gitlab-org--gitlab-foss/spec/support/matchers/be_url.rb

6 lines
103 B
Ruby
Raw Normal View History

2016-11-16 22:10:27 +00:00
RSpec::Matchers.define :be_url do |_|
match do |actual|
URI.parse(actual) rescue false
end
end