summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorLong Nguyen <long.polyglot@gmail.com>2016-05-21 23:11:26 +0700
committerLong Nguyen <long.polyglot@gmail.com>2016-05-21 23:11:26 +0700
commite55ba527b8a85da0fa4b61d9d17128f459acbfec (patch)
tree7421a8eb1ce5b60b820c4376eac4d0168cf50c02 /spec
parentb11cf8996ac00e58e662f9383caa113af860ce9c (diff)
downloadgitlab-ce-e55ba527b8a85da0fa4b61d9d17128f459acbfec.tar.gz
Fix broken specs
Diffstat (limited to 'spec')
-rw-r--r--spec/models/members/project_member_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/models/members/project_member_spec.rb b/spec/models/members/project_member_spec.rb
index 46e98c8807b..9f13874b532 100644
--- a/spec/models/members/project_member_spec.rb
+++ b/spec/models/members/project_member_spec.rb
@@ -47,14 +47,14 @@ describe ProjectMember, models: true do
end
it "destroy itself and delete associated todos" do
- expect(owner.todos.size).to eq(2)
- expect(master.todos.size).to eq(3)
+ expect(owner.user.todos.size).to eq(2)
+ expect(master.user.todos.size).to eq(3)
expect(Todo.count).to eq(5)
master_todo_ids = master_todos.map(&:id)
master.destroy
- expect(owner.todos.size).to eq(2)
+ expect(owner.user.todos.size).to eq(2)
expect(Todo.count).to eq(2)
master_todo_ids.each do |id|
expect(Todo.exists?(id)).to eq(false)