diff options
author | Adam Hegyi <ahegyi@gitlab.com> | 2019-07-22 10:47:29 +0300 |
---|---|---|
committer | Adam Hegyi <ahegyi@gitlab.com> | 2019-07-24 15:19:49 +0300 |
commit | f36da45711f7d412951b50c6b9db913a5e324171 (patch) | |
tree | bfd98a316ebc6c0daf31526b00f023d3ef72db6c /spec/models/issue_spec.rb | |
parent | 32aa7bd6745630e5dac87541a6f1a33773d97a4a (diff) |
Make RelativePositioning reusable
RelativePositioning module was heavily dependent on the Issue model.
This changes makes it easier to reuse the functionality provided by
RelativePositioning in other models.
Needed by: https://gitlab.com/gitlab-org/gitlab-ee/issues/12196
Diffstat (limited to 'spec/models/issue_spec.rb')
-rw-r--r-- | spec/models/issue_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/models/issue_spec.rb b/spec/models/issue_spec.rb index d5b016dc8f6..2e7d78d77a8 100644 --- a/spec/models/issue_spec.rb +++ b/spec/models/issue_spec.rb @@ -871,4 +871,12 @@ describe Issue do expect(issue.labels_hook_attrs).to eq([label.hook_attrs]) end end + + context "relative positioning" do + it_behaves_like "a class that supports relative positioning" do + let(:project) { create(:project) } + let(:factory) { :issue } + let(:default_params) { { project: project } } + end + end end |