diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-11-17 01:10:27 +0300 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-11-17 01:10:27 +0300 |
commit | 6f714dfb4a9b823ab75508f252d06e19e286d5f2 (patch) | |
tree | 409569ad65f1982451d9eb9a5bb0eae078abf01a /spec/support/matchers | |
parent | 2749e7a58285e59381a3e788983678d9cf633b45 (diff) |
Improve code design after code review
Diffstat (limited to 'spec/support/matchers')
-rw-r--r-- | spec/support/matchers/be_url.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/support/matchers/be_url.rb b/spec/support/matchers/be_url.rb new file mode 100644 index 00000000000..f8096af1b22 --- /dev/null +++ b/spec/support/matchers/be_url.rb @@ -0,0 +1,5 @@ +RSpec::Matchers.define :be_url do |_| + match do |actual| + URI.parse(actual) rescue false + end +end |