diff options
author | Heinrich Lee Yu <heinrich@gitlab.com> | 2019-02-26 20:26:26 +0300 |
---|---|---|
committer | Heinrich Lee Yu <heinrich@gitlab.com> | 2019-03-13 15:33:35 +0300 |
commit | 7d5ee4181a63318dd3a981fef9c12ce93e732fdb (patch) | |
tree | fb2c05c6beee188c1cf73112d7e4f502e3c87d98 /spec/controllers/groups | |
parent | f06a649ced952bcc439a5b3d36d96df178aabd66 (diff) |
Refactor groups and projects boards actions
Move common functionality to BoardsActions concern
Diffstat (limited to 'spec/controllers/groups')
-rw-r--r-- | spec/controllers/groups/boards_controller_spec.rb | 4 |
1 files changed, 1 insertions, 3 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 |