diff options
Diffstat (limited to 'qa')
-rw-r--r-- | qa/qa/specs/features/browser_ui/1_manage/project/add_project_member_spec.rb | 7 | ||||
-rw-r--r-- | qa/qa/specs/features/browser_ui/6_release/deploy_key/clone_using_deploy_key_spec.rb | 4 |
2 files changed, 5 insertions, 6 deletions
diff --git a/qa/qa/specs/features/browser_ui/1_manage/project/add_project_member_spec.rb b/qa/qa/specs/features/browser_ui/1_manage/project/add_project_member_spec.rb index 9a273e9cd1c..e30afbf8ae0 100644 --- a/qa/qa/specs/features/browser_ui/1_manage/project/add_project_member_spec.rb +++ b/qa/qa/specs/features/browser_ui/1_manage/project/add_project_member_spec.rb @@ -8,10 +8,9 @@ module QA user = Resource::User.fabricate_or_use(Runtime::Env.gitlab_qa_username_1, Runtime::Env.gitlab_qa_password_1) - project = Resource::Project.fabricate_via_api! do |resource| - resource.name = 'add-member-project' - end - project.visit! + Resource::Project.fabricate_via_api! do |project| + project.name = 'add-member-project' + end.visit! Page::Project::Menu.perform(&:go_to_members_settings) Page::Project::Settings::Members.perform do |members| diff --git a/qa/qa/specs/features/browser_ui/6_release/deploy_key/clone_using_deploy_key_spec.rb b/qa/qa/specs/features/browser_ui/6_release/deploy_key/clone_using_deploy_key_spec.rb index ca8b917d2c2..581e6b8299e 100644 --- a/qa/qa/specs/features/browser_ui/6_release/deploy_key/clone_using_deploy_key_spec.rb +++ b/qa/qa/specs/features/browser_ui/6_release/deploy_key/clone_using_deploy_key_spec.rb @@ -10,8 +10,8 @@ module QA @runner_name = "qa-runner-#{Time.now.to_i}" - @project = Resource::Project.fabricate_via_api! do |resource| - resource.name = 'deploy-key-clone-project' + @project = Resource::Project.fabricate_via_api! do |project| + project.name = 'deploy-key-clone-project' end @repository_location = @project.repository_ssh_location |