summaryrefslogtreecommitdiff
path: root/spec/models/merge_request_spec.rb
diff options
context:
space:
mode:
authorAndreas Brandl <abrandl@gitlab.com>2018-04-20 14:00:15 +0000
committerYorick Peterse - OOO until May 4th <yorickpeterse@gmail.com>2018-04-20 14:00:15 +0000
commit9ea2fc85a3387e7bbb10558b3f2302f05abe5b64 (patch)
tree3a56fa83b93423314915c65d6ae549c98d78cacc /spec/models/merge_request_spec.rb
parent87e592dc0a81d94efac157dfd7382df4e5b2a223 (diff)
downloadgitlab-ce-9ea2fc85a3387e7bbb10558b3f2302f05abe5b64.tar.gz
Atomic internal ids for all models
Diffstat (limited to 'spec/models/merge_request_spec.rb')
-rw-r--r--spec/models/merge_request_spec.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/spec/models/merge_request_spec.rb b/spec/models/merge_request_spec.rb
index f73f44ca0ad..becb146422e 100644
--- a/spec/models/merge_request_spec.rb
+++ b/spec/models/merge_request_spec.rb
@@ -17,11 +17,17 @@ describe MergeRequest do
describe 'modules' do
subject { described_class }
- it { is_expected.to include_module(NonatomicInternalId) }
it { is_expected.to include_module(Issuable) }
it { is_expected.to include_module(Referable) }
it { is_expected.to include_module(Sortable) }
it { is_expected.to include_module(Taskable) }
+
+ it_behaves_like 'AtomicInternalId' do
+ let(:internal_id_attribute) { :iid }
+ let(:instance) { build(:merge_request) }
+ let(:scope_attrs) { { project: instance.target_project } }
+ let(:usage) { :merge_requests }
+ end
end
describe 'validation' do