diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-01-15 13:56:43 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-01-15 13:56:43 +0100 |
commit | 6a504c8256fe5281819cc0a6dc916230f4203c7c (patch) | |
tree | 5bf1440cfc58494ed4476fff74caec016b193a20 /features/steps/project | |
parent | 6b2f38f39a473e6791b39e61645d76638d4bd673 (diff) | |
download | gitlab-ce-6a504c8256fe5281819cc0a6dc916230f4203c7c.tar.gz |
Add feature tests for permissions for build artifacts read abilityfeature/allow-artifacts-for-reporters
Diffstat (limited to 'features/steps/project')
-rw-r--r-- | features/steps/project/builds/artifacts.rb | 5 | ||||
-rw-r--r-- | features/steps/project/builds/permissions.rb | 7 |
2 files changed, 7 insertions, 5 deletions
diff --git a/features/steps/project/builds/artifacts.rb b/features/steps/project/builds/artifacts.rb index f4f91ad1d8c..f2c87da4717 100644 --- a/features/steps/project/builds/artifacts.rb +++ b/features/steps/project/builds/artifacts.rb @@ -8,11 +8,6 @@ class Spinach::Features::ProjectBuildsArtifacts < Spinach::FeatureSteps page.within('.artifacts') { click_link 'Download' } end - step 'download of build artifacts archive starts' do - expect(page.response_headers['Content-Type']).to eq 'application/zip' - expect(page.response_headers['Content-Transfer-Encoding']).to eq 'binary' - end - step 'I click artifacts browse button' do page.within('.artifacts') { click_link 'Browse' } end diff --git a/features/steps/project/builds/permissions.rb b/features/steps/project/builds/permissions.rb new file mode 100644 index 00000000000..6e9d6504fd5 --- /dev/null +++ b/features/steps/project/builds/permissions.rb @@ -0,0 +1,7 @@ +class Spinach::Features::ProjectBuildsPermissions < Spinach::FeatureSteps + include SharedAuthentication + include SharedProject + include SharedBuilds + include SharedPaths + include RepoHelpers +end |