summaryrefslogtreecommitdiffstats
path: root/features/support/helpers/misc_helpers.rb
diff options
context:
space:
mode:
Diffstat (limited to 'features/support/helpers/misc_helpers.rb')
-rw-r--r--features/support/helpers/misc_helpers.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/features/support/helpers/misc_helpers.rb b/features/support/helpers/misc_helpers.rb
index 2be06b6..0d1b958 100644
--- a/features/support/helpers/misc_helpers.rb
+++ b/features/support/helpers/misc_helpers.rb
@@ -115,16 +115,16 @@ end
ALPHA_SET = ('A'..'Z').to_a + ('a'..'z').to_a
ALNUM_SET = ALPHA_SET + (0..9).to_a.map { |n| n.to_s }
-def generate_random_string_from_set(set, min_len, max_len)
+def random_string_from_set(set, min_len, max_len)
len = (min_len..max_len).to_a.sample
len ||= min_len
set.sample(len).join
end
-def generate_random_alpha_string(min_len, max_len = 0)
- generate_random_string_from_set(ALPHA_SET, min_len, max_len)
+def random_alpha_string(min_len, max_len = 0)
+ random_string_from_set(ALPHA_SET, min_len, max_len)
end
-def generate_random_alnum_string(min_len, max_len = 0)
- generate_random_string_from_set(ALNUM_SET, min_len, max_len)
+def random_alnum_string(min_len, max_len = 0)
+ random_string_from_set(ALNUM_SET, min_len, max_len)
end