diff options
author | Christopher Bartz <bartz@dkrz.de> | 2017-03-07 18:57:30 +0100 |
---|---|---|
committer | Christopher Bartz <bartz@dkrz.de> | 2017-03-13 18:15:19 +0100 |
commit | 7849683766e93cfd91e0c864f3deb08500ea35d9 (patch) | |
tree | 75c4bdb8a652902ad4117c48399ed2f304e1bc74 /features/steps | |
parent | 1585608bdcf932b58d301a7943c01ea824ea524e (diff) | |
download | gitlab-ce-7849683766e93cfd91e0c864f3deb08500ea35d9.tar.gz |
Do not show LFS object when LFS is disabled
Do not display a 404, when a user tries to retrieve the raw content of
an LFS file (pointer) if the config option "lfs_enabled" is set to
false. Instead, display the LFS pointer file directly.
Diffstat (limited to 'features/steps')
-rw-r--r-- | features/steps/project/source/browse_files.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/features/steps/project/source/browse_files.rb b/features/steps/project/source/browse_files.rb index e84cd9193da..6845f75f22f 100644 --- a/features/steps/project/source/browse_files.rb +++ b/features/steps/project/source/browse_files.rb @@ -337,6 +337,7 @@ class Spinach::Features::ProjectSourceBrowseFiles < Spinach::FeatureSteps end step 'I click on "files/lfs/lfs_object.iso" file in repo' do + allow_any_instance_of(Project).to receive(:lfs_enabled?).and_return(true) visit namespace_project_tree_path(@project.namespace, @project, "lfs") click_link 'files' click_link "lfs" |