specstar-support-random 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/specstar/support/random.rb +3 -5
- metadata +1 -1
@@ -36,11 +36,9 @@ def random_query
|
|
36
36
|
end
|
37
37
|
|
38
38
|
def random_url(options={})
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
URI(random_domain)
|
43
|
-
end
|
39
|
+
domain = options.delete(:domain) || random_domain
|
40
|
+
|
41
|
+
uri = URI("#{['http', 'https'].sample}://#{domain}")
|
44
42
|
uri.path = "/#{random_text.downcase}"
|
45
43
|
uri.query = random_query
|
46
44
|
|