diff --git a/features/repository/index.feature b/features/repository/index.feature index c1f89db..5eff9e2 100644 --- a/features/repository/index.feature +++ b/features/repository/index.feature @@ -19,8 +19,9 @@ Feature: Repository listing And I have a sample repository And I have a sample project And I have a sample repository within the sample project + And I own that repository And I am at the All Repositories page - Then the sample repository should be there + Then the sample repository should not be there And the project repository should be there And I should not see "You must be logged in to create new Repositories." diff --git a/features/step_definitions/repository_steps.rb b/features/step_definitions/repository_steps.rb index 2146aa3..0e08798 100644 --- a/features/step_definitions/repository_steps.rb +++ b/features/step_definitions/repository_steps.rb @@ -249,6 +249,10 @@ Then(/^the sample repository should be there$/) do expect(page).to have_content(@independent_repository.description) end +Then(/^the sample repository should not be there$/) do + expect(page).to_not have_content(@independent_repository.name) +end + Then(/^the project repository should be there$/) do expect(page).to have_content(@repository.name) expect(page).to have_content(@repository.description) -- libgit2 0.21.2