Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorCindy Pallares <cindy@gitlab.com>2018-10-19 19:36:41 +0300
committerCindy Pallares <cindy@gitlab.com>2018-10-22 20:55:49 +0300
commitbe493207b069d832d5ecb97fb157df60fa58094f (patch)
tree9ce0c6d3f952c2fb0ae5d34d05f09f77f6dd1e6d /spec
parent019701ce9e0675e2727dcced84d4c406a1592f96 (diff)
Alias the lfs_enabled method
We currently check for `project.lfs_enabled` to display the state of lfs being enabled/disabled, but this is set to nil by default, even when lfs is enabled. Aliasing the method to #lfs_enabled? will return the correct state.
Diffstat (limited to 'spec')
-rw-r--r--spec/lib/gitlab/import_export/project_tree_restorer_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/lib/gitlab/import_export/project_tree_restorer_spec.rb b/spec/lib/gitlab/import_export/project_tree_restorer_spec.rb
index 7ebfc61f5e7..b0570680d5a 100644
--- a/spec/lib/gitlab/import_export/project_tree_restorer_spec.rb
+++ b/spec/lib/gitlab/import_export/project_tree_restorer_spec.rb
@@ -335,7 +335,7 @@ describe Gitlab::ImportExport::ProjectTreeRestorer do
restored_project_json
- expect(project.lfs_enabled).to be_nil
+ expect(project.lfs_enabled).to be_falsey
end
end