diff options
author | Bob Van Landuyt <bob@vanlanduyt.co> | 2017-07-20 17:32:17 +0200 |
---|---|---|
committer | Bob Van Landuyt <bob@vanlanduyt.co> | 2017-08-31 14:10:04 +0200 |
commit | bde39322f1b0a24b03c949abbf34b21859f9a5c0 (patch) | |
tree | 8f6e13d1429be0b8df995e7d6e6c090721409676 /spec/lib/gitlab/utils_spec.rb | |
parent | 1eb30cfb758d9fa576f1164fe7c5f520867ce378 (diff) | |
download | gitlab-ce-bde39322f1b0a24b03c949abbf34b21859f9a5c0.tar.gz |
Add a linter for PO files
Diffstat (limited to 'spec/lib/gitlab/utils_spec.rb')
-rw-r--r-- | spec/lib/gitlab/utils_spec.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/spec/lib/gitlab/utils_spec.rb b/spec/lib/gitlab/utils_spec.rb index 92787bb262e..3137a72fdc4 100644 --- a/spec/lib/gitlab/utils_spec.rb +++ b/spec/lib/gitlab/utils_spec.rb @@ -1,7 +1,7 @@ require 'spec_helper' describe Gitlab::Utils do - delegate :to_boolean, :boolean_to_yes_no, :slugify, to: :described_class + delegate :to_boolean, :boolean_to_yes_no, :slugify, :random_string, to: :described_class describe '.slugify' do { @@ -53,4 +53,10 @@ describe Gitlab::Utils do expect(boolean_to_yes_no(false)).to eq('No') end end + + describe '.random_string' do + it 'generates a string' do + expect(random_string).to be_kind_of(String) + end + end end |