Skip to content

Commit

Permalink
テストで非推奨のクラス(StringUtils)を参照していたため修正
Browse files Browse the repository at this point in the history
* StringUtils -> Bizside::StringUtils
  • Loading branch information
TakuyaNoguchi committed May 20, 2022
1 parent 684f8e9 commit b13b703
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bizside_test_app/test/lib/bizside/string_utils_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@ def test_rand_string
end

def test_create_random_alpha_string_case_sensitive_true
s = StringUtils.create_random_alpha_string(10, true)
s = Bizside::StringUtils.create_random_alpha_string(10, true)
assert s =~ /\A[A-Za-z]{10}\z/
end

def test_create_random_alpha_string_case_sensitive_false
s = StringUtils.create_random_alpha_string(10, false)
s = Bizside::StringUtils.create_random_alpha_string(10, false)
assert s =~ /\A[a-z]{10}\z/
end

def test_create_random_alpha_string_more_than_26_chars
s = StringUtils.create_random_alpha_string(53, true)
s = Bizside::StringUtils.create_random_alpha_string(53, true)
assert s =~ /\A[A-Za-z]{53}\z/

s = StringUtils.create_random_alpha_string(27, false)
s = Bizside::StringUtils.create_random_alpha_string(27, false)
assert s =~ /\A[a-z]{27}\z/
end
end

0 comments on commit b13b703

Please sign in to comment.