diff options
author | Eirik Lygre <eirik.lygre@gmail.com> | 2015-12-09 00:20:51 +0100 |
---|---|---|
committer | Eirik Lygre <eirik.lygre@gmail.com> | 2015-12-09 00:20:51 +0100 |
commit | 430aa23a5b82b34912dc86c323087fabd2849b7c (patch) | |
tree | a2c7cdb10d8377399ec527fe3a0f23a9bad5c9e3 /features/steps/explore | |
parent | 419d6fa6b19f2e2ee6429f7db453573155ca2d21 (diff) | |
download | gitlab-ce-430aa23a5b82b34912dc86c323087fabd2849b7c.tar.gz |
Add spinach tests for the clone protocol selection.
Diffstat (limited to 'features/steps/explore')
-rw-r--r-- | features/steps/explore/projects.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/features/steps/explore/projects.rb b/features/steps/explore/projects.rb index 8b498e7b4a6..82cb9e24062 100644 --- a/features/steps/explore/projects.rb +++ b/features/steps/explore/projects.rb @@ -144,4 +144,12 @@ class Spinach::Features::ExploreProjects < Spinach::FeatureSteps def public_merge_request @public_merge_request ||= MergeRequest.find_by!(title: 'Bug fix for public project') end + + step 'I have ssh key "ssh-rsa Work"' do + create(:key, user: @user, title: "ssh-rsa Work", key: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC+L3TbFegm3k8QjejSwemk4HhlRh+DuN679Pc5ckqE/MPhVtE/+kZQDYCTB284GiT2aIoGzmZ8ee9TkaoejAsBwlA+Wz2Q3vhz65X6sMgalRwpdJx8kSEUYV8ZPV3MZvPo8KdNg993o4jL6G36GDW4BPIyO6FPZhfsawdf6liVD0Xo5kibIK7B9VoE178cdLQtLpS2YolRwf5yy6XR6hbbBGQR+6xrGOdP16eGZDb1CE2bMvvJijjloFqPscGktWOqW+nfh5txwFfBzlfARDTBsS8WZtg3Yoj1kn33kPsWRlgHfNutFRAIynDuDdQzQq8tTtVwm+Yi75RfcPHW8y3P Work") + end + + step 'I have no ssh keys' do + Key.delete_all + end end |