diff options
author | Long Nguyen <long.polyglot@gmail.com> | 2016-05-21 23:11:26 +0700 |
---|---|---|
committer | Long Nguyen <long.polyglot@gmail.com> | 2016-05-21 23:11:26 +0700 |
commit | e55ba527b8a85da0fa4b61d9d17128f459acbfec (patch) | |
tree | 7421a8eb1ce5b60b820c4376eac4d0168cf50c02 /spec | |
parent | b11cf8996ac00e58e662f9383caa113af860ce9c (diff) | |
download | gitlab-ce-e55ba527b8a85da0fa4b61d9d17128f459acbfec.tar.gz |
Fix broken specs
Diffstat (limited to 'spec')
-rw-r--r-- | spec/models/members/project_member_spec.rb | 6 |
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) |