gitlab-org--gitlab-foss/spec/support/matchers/be_url.rb
2016-11-16 23:10:27 +01:00

5 lines
103 B
Ruby

RSpec::Matchers.define :be_url do |_|
match do |actual|
URI.parse(actual) rescue false
end
end