diff options
| author | Andreas Brandl <abrandl@gitlab.com> | 2019-07-26 09:29:55 +0200 |
|---|---|---|
| committer | Andreas Brandl <abrandl@gitlab.com> | 2019-07-26 09:29:55 +0200 |
| commit | 90f0658ca1747f3334f18b118566624c94201a05 (patch) | |
| tree | 753631dbb2afcdd409596e9a952a183c335dab98 | |
| parent | 3a78d9aeb1d184dea97696518d49084686eae09e (diff) | |
| download | gitlab-ce-90f0658ca1747f3334f18b118566624c94201a05.tar.gz | |
Shorten spec expectation
| -rw-r--r-- | spec/models/todo_spec.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/models/todo_spec.rb b/spec/models/todo_spec.rb index fe0606e21a0..9aeef7c3b4b 100644 --- a/spec/models/todo_spec.rb +++ b/spec/models/todo_spec.rb @@ -262,8 +262,7 @@ describe Todo do todo2 = create(:todo, group: child_group) todos = described_class.for_group_and_descendants(parent_group) - expect(todos).to include(todo1) - expect(todos).to include(todo2) + expect(todos).to contain_exactly(todo1, todo2) end end |
