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>2019-12-19 03:08:01 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2019-12-19 03:08:01 +0300
commit1caa60060b2f9e3417ab335e2f1dea1064163434 (patch)
tree01c0d5825bd345ee625bb70b7433c6e10307fcce /spec/models/internal_id_spec.rb
parent7f8330873c1a5860b8a9a52d111083a65d210249 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/models/internal_id_spec.rb')
-rw-r--r--spec/models/internal_id_spec.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/models/internal_id_spec.rb b/spec/models/internal_id_spec.rb
index c73ade3f896..33d03bfc0f5 100644
--- a/spec/models/internal_id_spec.rb
+++ b/spec/models/internal_id_spec.rb
@@ -170,6 +170,7 @@ describe InternalId do
describe '.track_greatest' do
let(:value) { 9001 }
+
subject { described_class.track_greatest(issue, scope, usage, value, init) }
context 'in the absence of a record' do
@@ -210,6 +211,7 @@ describe InternalId do
describe '#increment_and_save!' do
let(:id) { create(:internal_id) }
+
subject { id.increment_and_save! }
it 'returns incremented iid' do
@@ -236,6 +238,7 @@ describe InternalId do
describe '#track_greatest_and_save!' do
let(:id) { create(:internal_id) }
let(:new_last_value) { 9001 }
+
subject { id.track_greatest_and_save!(new_last_value) }
it 'returns new last value' do