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:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-01-07 12:07:59 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-01-07 12:07:59 +0300
commite440c86979e9c02a09fb6558f59a1fbe29433b51 (patch)
tree3f29052345686bbf7590ed794eff0ca93c37fb97 /spec/lib/gitlab/usage_data_spec.rb
parent7d81614e3f13d6ab2dbbf42c7f30d3a6702943e2 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/lib/gitlab/usage_data_spec.rb')
-rw-r--r--spec/lib/gitlab/usage_data_spec.rb6
1 files changed, 0 insertions, 6 deletions
diff --git a/spec/lib/gitlab/usage_data_spec.rb b/spec/lib/gitlab/usage_data_spec.rb
index 6ab23b00d5c..3a56462ec1b 100644
--- a/spec/lib/gitlab/usage_data_spec.rb
+++ b/spec/lib/gitlab/usage_data_spec.rb
@@ -339,12 +339,6 @@ describe Gitlab::UsageData do
expect(described_class.count(relation)).to eq(1)
end
- it 'returns the count for count_by when provided' do
- allow(relation).to receive(:count).with(:creator_id).and_return(2)
-
- expect(described_class.count(relation, count_by: :creator_id)).to eq(2)
- end
-
it 'returns the fallback value when counting fails' do
allow(relation).to receive(:count).and_raise(ActiveRecord::StatementInvalid.new(''))