diff options
| author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-07-31 17:23:40 +0300 |
|---|---|---|
| committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-07-31 17:23:40 +0300 |
| commit | c2c7d14ec51ec8654cc4e0ca57ba0bc146fd8725 (patch) | |
| tree | a934912a8d8711d5fca2b7a1b3da1ee8b4698519 /features/steps/shared/paths.rb | |
| parent | bb2f4d665e946806d0bb94d3a50569ae6aa12e66 (diff) | |
| download | gitlab-ce-c2c7d14ec51ec8654cc4e0ca57ba0bc146fd8725.tar.gz | |
Move all test repos data to ReposHelpers
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'features/steps/shared/paths.rb')
| -rw-r--r-- | features/steps/shared/paths.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/features/steps/shared/paths.rb b/features/steps/shared/paths.rb index 6acf877c256..4e97dba20b3 100644 --- a/features/steps/shared/paths.rb +++ b/features/steps/shared/paths.rb @@ -1,5 +1,6 @@ module SharedPaths include Spinach::DSL + include RepoHelpers step 'I visit new project page' do visit new_project_path @@ -257,7 +258,7 @@ module SharedPaths end step 'I visit blob file from repo' do - visit project_blob_path(@project, File.join(ValidCommit::ID, ValidCommit::BLOB_FILE_PATH)) + visit project_blob_path(@project, File.join(sample_commit.id, sample_blob.path)) end step 'I visit ".gitignore" file in repo' do @@ -273,7 +274,7 @@ module SharedPaths end step 'I visit project commit page' do - visit project_commit_path(@project, ValidCommit::ID) + visit project_commit_path(@project, sample_commit.id) end step 'I visit project "Shop" issues page' do |
