You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I find myself using Faker::Internet.slug pretty regularly, but I almost never need to specify words and almost always specify the glue. So, my tests and factories are littered with Faker::Internet.slug(nil, '-'). It seems to me it would read better as Faker::Internet.slug(glue: '-').
I think this would also provide some clarity on other Faker classes involving multiple arguments. For example, the somewhat ambiguous
I find myself using
Faker::Internet.slug
pretty regularly, but I almost never need to specify words and almost always specify the glue. So, my tests and factories are littered withFaker::Internet.slug(nil, '-')
. It seems to me it would read better asFaker::Internet.slug(glue: '-')
.I think this would also provide some clarity on other Faker classes involving multiple arguments. For example, the somewhat ambiguous
would become
It's more verbose, but I'd prefer that than having to consult the faker docs every time.
The text was updated successfully, but these errors were encountered: