summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorSean McGivern <sean@gitlab.com>2017-03-07 18:12:22 +0000
committerSean McGivern <sean@gitlab.com>2017-03-07 18:12:52 +0000
commit8549f7aa1e4d0bf58e79a572665b6fa35b83e9d0 (patch)
tree37d035f2db42ad94e85531f232e94e376f06736d /spec
parent80898d91ecc8106c3c7f21da27a8daf8f00a3cbf (diff)
downloadgitlab-ce-8549f7aa1e4d0bf58e79a572665b6fa35b83e9d0.tar.gz
Fix access token specsfix-specs-for-access-tokens
de37dcee90ac44ba794ad504e91f18b8fb4b13a3 was a manual merge, which meant it didn't have a build, so I broke master :-(
Diffstat (limited to 'spec')
-rw-r--r--spec/controllers/profiles/personal_access_tokens_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/controllers/profiles/personal_access_tokens_spec.rb b/spec/controllers/profiles/personal_access_tokens_spec.rb
index e1353406b32..dfed1de2046 100644
--- a/spec/controllers/profiles/personal_access_tokens_spec.rb
+++ b/spec/controllers/profiles/personal_access_tokens_spec.rb
@@ -15,10 +15,10 @@ describe Profiles::PersonalAccessTokensController do
name = FFaker::Product.brand
scopes = %w[api read_user]
- post :create, personal_access_token: token_attributes.merge(scopes: scopes)
+ post :create, personal_access_token: token_attributes.merge(scopes: scopes, name: name)
expect(created_token).not_to be_nil
- expect(created_token.name).to eq(token_attributes[:name])
+ expect(created_token.name).to eq(name)
expect(created_token.scopes).to eq(scopes)
expect(PersonalAccessToken.active).to include(created_token)
end