it 'allows submit file action for students with team that can submit' do
        stub_current_user(student1, student1.role.name, student1.role)
        allow(controller).to receive(:one_team_can_submit_work?).and_return(true)
        controller.params = {action: 'submit_file'}
        expect(controller.send(:action_allowed?)).to be true