Commit 141ff2994db57f6f036ebed34ec498247e45edef

Authored by Diego Araújo
1 parent de9beca2
Exists in colab and in 2 other branches master, stable

Adapt Repository#index acceptance tests to cover private repositories

features/repository/index.feature
... ... @@ -19,8 +19,9 @@ Feature: Repository listing
19 19 And I have a sample repository
20 20 And I have a sample project
21 21 And I have a sample repository within the sample project
  22 + And I own that repository
22 23 And I am at the All Repositories page
23   - Then the sample repository should be there
  24 + Then the sample repository should not be there
24 25 And the project repository should be there
25 26 And I should not see "You must be logged in to create new Repositories."
26 27  
... ...
features/step_definitions/repository_steps.rb
... ... @@ -249,6 +249,10 @@ Then(/^the sample repository should be there$/) do
249 249 expect(page).to have_content(@independent_repository.description)
250 250 end
251 251  
  252 +Then(/^the sample repository should not be there$/) do
  253 + expect(page).to_not have_content(@independent_repository.name)
  254 +end
  255 +
252 256 Then(/^the project repository should be there$/) do
253 257 expect(page).to have_content(@repository.name)
254 258 expect(page).to have_content(@repository.description)
... ...