diff options
author | Robert Speicher <rspeicher@gmail.com> | 2017-06-05 21:44:29 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2017-06-20 02:59:01 +0300 |
commit | 45fb1f9542fc258d8671c82843d681277ae4aa89 (patch) | |
tree | b466767095ec1d9560155d8188140f40cc8a5742 /spec/features/projects/badges | |
parent | c1cbc27314dd4a83b6a337072e4c386cbcd14ca7 (diff) |
Change `login_as` uses to `gitlab_sign_in`
Diffstat (limited to 'spec/features/projects/badges')
-rw-r--r-- | spec/features/projects/badges/coverage_spec.rb | 4 | ||||
-rw-r--r-- | spec/features/projects/badges/list_spec.rb | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/spec/features/projects/badges/coverage_spec.rb b/spec/features/projects/badges/coverage_spec.rb index 01a95bf49ac..9624e1a71b0 100644 --- a/spec/features/projects/badges/coverage_spec.rb +++ b/spec/features/projects/badges/coverage_spec.rb @@ -7,7 +7,7 @@ feature 'test coverage badge' do context 'when user has access to view badge' do background do project.team << [user, :developer] - login_as(user) + gitlab_sign_in(user) end scenario 'user requests coverage badge image for pipeline' do @@ -45,7 +45,7 @@ feature 'test coverage badge' do end context 'when user does not have access to view badge' do - background { login_as(user) } + background { gitlab_sign_in(user) } scenario 'user requests test coverage badge image' do show_test_coverage_badge diff --git a/spec/features/projects/badges/list_spec.rb b/spec/features/projects/badges/list_spec.rb index ae9db0c0d6e..348748152bb 100644 --- a/spec/features/projects/badges/list_spec.rb +++ b/spec/features/projects/badges/list_spec.rb @@ -5,7 +5,7 @@ feature 'list of badges' do user = create(:user) project = create(:project) project.team << [user, :master] - login_as(user) + gitlab_sign_in(user) visit namespace_project_pipelines_settings_path(project.namespace, project) end |