Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2016-02-16 18:40:36 +0300
committerJames Lopez <james@jameslopez.es>2016-02-16 18:40:36 +0300
commitb1731adf4385b982348746564e7365b7b70e50fb (patch)
treed1a4fdec37f614657100f2e4d14e62e2826f47f4 /features/steps
parent3de6edd6041a725aaffba95603d4eb2912627d42 (diff)
workaround for forks with an invalid repo - avoid showing them in the list
Diffstat (limited to 'features/steps')
-rw-r--r--features/steps/project/fork.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/features/steps/project/fork.rb b/features/steps/project/fork.rb
index 5810276ced3..7e5160bae2f 100644
--- a/features/steps/project/fork.rb
+++ b/features/steps/project/fork.rb
@@ -62,6 +62,17 @@ class Spinach::Features::ProjectFork < Spinach::FeatureSteps
end
end
+ step 'I make forked repo invalid' do
+ project = @user.fork_of(@project)
+ project.path = 'test-crappy-path'
+ project.save!
+ end
+
+ step 'I should not see the invalid fork listed' do
+ project = @user.fork_of(@project)
+ expect(page).not_to have_content("#{project.namespace.human_name} / #{project.name}")
+ end
+
step 'There is an existent fork of the "Shop" project' do
user = create(:user, name: 'Mike')
@forked_project = Projects::ForkService.new(@project, user).execute