diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-17 12:07:33 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-17 12:07:33 +0000 |
commit | 6b75320f525f841454f1ab162d141d3610f2e77b (patch) | |
tree | 4971c27759e4fbc18b85e71800c3b9c12346317e /spec/finders | |
parent | 4226aca420920c1844e8eade4798a2dff188a6fc (diff) | |
download | gitlab-ce-6b75320f525f841454f1ab162d141d3610f2e77b.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/finders')
-rw-r--r-- | spec/finders/boards/visits_finder_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/finders/boards/visits_finder_spec.rb b/spec/finders/boards/visits_finder_spec.rb index 4d40f4826f8..7e3ad8aa9f0 100644 --- a/spec/finders/boards/visits_finder_spec.rb +++ b/spec/finders/boards/visits_finder_spec.rb @@ -10,7 +10,7 @@ describe Boards::VisitsFinder do let(:project) { create(:project) } let(:project_board) { create(:board, project: project) } - subject(:finder) { described_class.new(project_board.parent, user) } + subject(:finder) { described_class.new(project_board.resource_parent, user) } it 'returns nil when there is no user' do finder.current_user = nil @@ -27,7 +27,7 @@ describe Boards::VisitsFinder do it 'queries for last N visits' do expect(BoardProjectRecentVisit).to receive(:latest).with(user, project, count: 5).once - described_class.new(project_board.parent, user).latest(5) + described_class.new(project_board.resource_parent, user).latest(5) end end @@ -35,7 +35,7 @@ describe Boards::VisitsFinder do let(:group) { create(:group) } let(:group_board) { create(:board, group: group) } - subject(:finder) { described_class.new(group_board.parent, user) } + subject(:finder) { described_class.new(group_board.resource_parent, user) } it 'returns nil when there is no user' do finder.current_user = nil @@ -52,7 +52,7 @@ describe Boards::VisitsFinder do it 'queries for last N visits' do expect(BoardGroupRecentVisit).to receive(:latest).with(user, group, count: 5).once - described_class.new(group_board.parent, user).latest(5) + described_class.new(group_board.resource_parent, user).latest(5) end end end |