debian-mirror-gitlab/spec/support/matchers/be_url.rb
2017-08-17 22:00:37 +05:30

5 lines
103 B
Ruby

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