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
diff options
context:
space:
mode:
authorGabriel Mazetto <brodock@gmail.com>2017-10-31 13:31:57 +0300
committerGabriel Mazetto <brodock@gmail.com>2017-10-31 14:13:48 +0300
commit9c41c7ac1ea2e9085424e3eb1fe9924243affb7c (patch)
tree490cf33bc7fe4caf68e46766174e9ad1c068c58a /spec/models/project_spec.rb
parent6a4534b62fad51e5e9da0d132ed64626ffdc2d10 (diff)
Make `#hashed_storage?` require feature argument
Diffstat (limited to 'spec/models/project_spec.rb')
-rw-r--r--spec/models/project_spec.rb20
1 files changed, 6 insertions, 14 deletions
diff --git a/spec/models/project_spec.rb b/spec/models/project_spec.rb
index fb5d0f9db9c..5eaff405c0e 100644
--- a/spec/models/project_spec.rb
+++ b/spec/models/project_spec.rb
@@ -2494,7 +2494,7 @@ describe Project do
describe '#hashed_storage?' do
it 'returns false' do
- expect(project.hashed_storage?).to be_falsey
+ expect(project.hashed_storage?(:repository)).to be_falsey
end
end
@@ -2630,22 +2630,14 @@ describe Project do
end
describe '#hashed_storage?' do
- context 'without specifying feature' do
- it 'returns true' do
- expect(project.hashed_storage?).to be_truthy
- end
+ it 'returns true if rolled out' do
+ expect(project.hashed_storage?(:attachments)).to be_truthy
end
- context 'specifying feature' do
- it 'returns true if rolled out' do
- expect(project.hashed_storage?(:attachments)).to be_truthy
- end
-
- it 'returns false when not rolled out yet' do
- project.storage_version = 1
+ it 'returns false when not rolled out yet' do
+ project.storage_version = 1
- expect(project.hashed_storage?(:attachments)).to be_falsey
- end
+ expect(project.hashed_storage?(:attachments)).to be_falsey
end
end