---
title: 'This week in #dev (Jan 5, 2024)'
teaser: 'Fuzzy finding Rails routes and speeding up test suites!

  '
tags: this week in dev,tip,test,performance,terminal
author: thoughtbot
published_on: 2024-01-15
---

Welcome to another edition of [This Week in #dev](https://thoughtbot.com/blog/tags/this-week-in-dev),
a series of posts where we bring some of our most interesting Slack
conversations to the public.

## Fuzzy Finding Rails Routes

[Neil Carvalho][neilson] mentions [fzf][], an interactive command-line fuzzy
finder that can be used with any list (files, command history, git commits,
etc). He mentions using it to fuzzy find Rails routes (instead of using `grep`).

```bash
rails routes | fzf
```

[neilson]: https://thoughtbot.com/blog/authors/neil-carvalho
[fzf]: https://github.com/junegunn/fzf

## An Old Gem: How To Speed Up Your Tests

[Matheus Richard][matheus] shares [a 10-year-old Upcase thread][] discussing
ways to speed up tests. Even though it's old, it's still relevant today!
One of the tips is to disable [PaperTrail][] in tests that don't need it.

```ruby
# in your test helper
PaperTrail.enabled = false
```

[matheus]: https://thoughtbot.com/blog/authors/matheus-richard
[a 10-year-old Upcase thread]: https://forum.upcase.com/t/test-suite-speed/1735/9
[PaperTrail]: https://github.com/paper-trail-gem/paper_trail

## Thanks

This edition was brought to you by [Matheus Richard][matheus] and [Neil
Carvalho][neilson]. Thanks to all contributors! 🎉
