diff options
author | Tiago Botelho <tiagonbotelho@hotmail.com> | 2017-03-01 19:59:03 +0300 |
---|---|---|
committer | Tiago Botelho <tiagonbotelho@hotmail.com> | 2017-03-06 22:18:26 +0300 |
commit | 005749a616c19b90d6ec0415df9ae5e35151e33c (patch) | |
tree | f1618dbe99a4ed60980dc94f831864f9e701c589 /spec/features/profiles/personal_access_tokens_spec.rb | |
parent | 2b474dc2b226460782413e634792cf83e791173b (diff) |
apply codestyle and implementation changes to the respective feature code
Diffstat (limited to 'spec/features/profiles/personal_access_tokens_spec.rb')
-rw-r--r-- | spec/features/profiles/personal_access_tokens_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/features/profiles/personal_access_tokens_spec.rb b/spec/features/profiles/personal_access_tokens_spec.rb index 74e4e157dc5..0917d4dc3ef 100644 --- a/spec/features/profiles/personal_access_tokens_spec.rb +++ b/spec/features/profiles/personal_access_tokens_spec.rb @@ -4,11 +4,11 @@ describe 'Profile > Personal Access Tokens', feature: true, js: true do let(:user) { create(:user) } def active_personal_access_tokens - find(".table.active-personal-access-tokens") + find(".table.active-tokens") end def inactive_personal_access_tokens - find(".table.inactive-personal-access-tokens") + find(".table.inactive-tokens") end def created_personal_access_token @@ -26,7 +26,7 @@ describe 'Profile > Personal Access Tokens', feature: true, js: true do end describe "token creation" do - it "allows creation of a non impersonation token" do + it "allows creation of a personal access token" do name = FFaker::Product.brand visit profile_personal_access_tokens_path @@ -61,10 +61,10 @@ describe 'Profile > Personal Access Tokens', feature: true, js: true do end describe 'active tokens' do - let!(:impersonation_token) { create(:impersonation_personal_access_token, user: user) } + let!(:impersonation_token) { create(:personal_access_token, :impersonation, user: user) } let!(:personal_access_token) { create(:personal_access_token, user: user) } - it 'only shows non impersonated tokens' do + it 'only shows personal access tokens' do visit profile_personal_access_tokens_path expect(active_personal_access_tokens).to have_text(personal_access_token.name) |