require'spec_helper'describeBoardsHelperdodescribe'#board_data'dolet(:user){create(:user)}let(:project){create(:project)}let(:board){create(:board,project: project)}beforedoassign(:board,board)assign(:project,project)allow(helper).toreceive(:current_user){user}allow(helper).toreceive(:can?).with(user,:admin_list,project).and_return(true)endit'returns a board_lists_path as lists_endpoint'doexpect(helper.board_data[:lists_endpoint]).toeq(board_lists_path(board))endendend