summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Brandl <abrandl@gitlab.com>2019-07-26 09:29:55 +0200
committerAndreas Brandl <abrandl@gitlab.com>2019-07-26 09:29:55 +0200
commit90f0658ca1747f3334f18b118566624c94201a05 (patch)
tree753631dbb2afcdd409596e9a952a183c335dab98
parent3a78d9aeb1d184dea97696518d49084686eae09e (diff)
downloadgitlab-ce-90f0658ca1747f3334f18b118566624c94201a05.tar.gz
Shorten spec expectation
-rw-r--r--spec/models/todo_spec.rb3
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