diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-14 03:07:47 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-14 03:07:47 +0300 |
commit | e2d4a6dedbb55154ff9389dbe061fa74ccbae287 (patch) | |
tree | 13f364616561701ce2cea0426cad72f7914c5128 /spec/helpers | |
parent | 30080dfe0a7475f37cdcf95ad1b04ce1ea060e3c (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/helpers')
-rw-r--r-- | spec/helpers/access_tokens_helper_spec.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/helpers/access_tokens_helper_spec.rb b/spec/helpers/access_tokens_helper_spec.rb new file mode 100644 index 00000000000..1d246d3f236 --- /dev/null +++ b/spec/helpers/access_tokens_helper_spec.rb @@ -0,0 +1,18 @@ +# frozen_string_literal: true + +require "spec_helper" + +describe AccessTokensHelper do + describe "#scope_description" do + using RSpec::Parameterized::TableSyntax + + where(:prefix, :description_location) do + :personal_access_token | [:doorkeeper, :scope_desc] + :project_access_token | [:doorkeeper, :project_access_token_scope_desc] + end + + with_them do + it { expect(helper.scope_description(prefix)).to eq(description_location) } + end + end +end |