diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-01-27 23:19:32 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-01-27 23:19:32 +0300 |
commit | e956066d4a9c3f556a52f80acfb5c761aede7c6c (patch) | |
tree | 955561a235a659f867b93e6d1b56476e67b7c46d /features/steps/project/source | |
parent | 2fa36ddd9c9efcc4f0d40755f535867573a0483c (diff) |
Add tests for initializing bare repo and creating new file in it
Diffstat (limited to 'features/steps/project/source')
-rw-r--r-- | features/steps/project/source/browse_files.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/features/steps/project/source/browse_files.rb b/features/steps/project/source/browse_files.rb index bd1ca55a20a..770e8162497 100644 --- a/features/steps/project/source/browse_files.rb +++ b/features/steps/project/source/browse_files.rb @@ -166,6 +166,17 @@ class Spinach::Features::ProjectSourceBrowseFiles < Spinach::FeatureSteps expect(page).to have_content('Your changes could not be committed') end + step 'I create bare repo' do + click_link 'Create empty bare repository' + end + + step 'I click on "add a file" link' do + click_link 'add a file' + + # Remove pre-receive hook so we can push without auth + FileUtils.rm(File.join(Project.last.repository.path, 'hooks', 'pre-receive')) + end + private def set_new_content |