diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/controllers/groups/boards_controller_spec.rb | 4 | ||||
-rw-r--r-- | spec/controllers/projects/boards_controller_spec.rb | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/spec/controllers/groups/boards_controller_spec.rb b/spec/controllers/groups/boards_controller_spec.rb index 4228e727b52..2f4a00561ac 100644 --- a/spec/controllers/groups/boards_controller_spec.rb +++ b/spec/controllers/groups/boards_controller_spec.rb @@ -33,11 +33,9 @@ describe Groups::BoardsController do it 'renders template if visited board is not found' do temporary_board = create(:board, group: group) - visited = create(:board_group_recent_visit, group: temporary_board.group, board: temporary_board, user: user) + create(:board_group_recent_visit, group: temporary_board.group, board: temporary_board, user: user) temporary_board.delete - allow_any_instance_of(Boards::Visits::LatestService).to receive(:execute).and_return(visited) - list_boards expect(response).to render_template :index diff --git a/spec/controllers/projects/boards_controller_spec.rb b/spec/controllers/projects/boards_controller_spec.rb index 09199067024..3cf948498b7 100644 --- a/spec/controllers/projects/boards_controller_spec.rb +++ b/spec/controllers/projects/boards_controller_spec.rb @@ -39,11 +39,9 @@ describe Projects::BoardsController do it 'renders template if visited board is not found' do temporary_board = create(:board, project: project) - visited = create(:board_project_recent_visit, project: temporary_board.project, board: temporary_board, user: user) + create(:board_project_recent_visit, project: temporary_board.project, board: temporary_board, user: user) temporary_board.delete - allow_any_instance_of(Boards::Visits::LatestService).to receive(:execute).and_return(visited) - list_boards expect(response).to render_template :index |