From e55ba527b8a85da0fa4b61d9d17128f459acbfec Mon Sep 17 00:00:00 2001 From: Long Nguyen Date: Sat, 21 May 2016 23:11:26 +0700 Subject: Fix broken specs --- spec/models/members/project_member_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'spec/models/members') 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) -- cgit v1.2.1