Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests for new Faker::Internet.slug glue #1457

Merged
merged 2 commits into from
Oct 31, 2018
Merged

Add tests for new Faker::Internet.slug glue #1457

merged 2 commits into from
Oct 31, 2018

Conversation

vbrazo
Copy link
Member

@vbrazo vbrazo commented Oct 31, 2018

Missing test from #1456

@ivanoblomov please take a look

@vbrazo vbrazo added the Chores label Oct 31, 2018
@vbrazo vbrazo self-assigned this Oct 31, 2018
@ivanoblomov
Copy link
Contributor

@vbrazo happy to help here, but can you think of a suitable test?

As I noted in the PR, the randomization makes it tricky since a passing test won’t necessarily mean a successful patch (it may be that a period simply wasn’t sampled).

Copy link
Contributor

@ivanoblomov ivanoblomov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My bad, thought this was an issue not a PR!

Anyway, I’m happy with your first assertion, but would recommend omitting the loop and refutation since it can be a potential cause of intermittent failure going forward.

@vbrazo vbrazo merged commit a1a4a77 into faker-ruby:master Oct 31, 2018
@vbrazo vbrazo deleted the chores/add-test-for-faker-internet branch October 31, 2018 19:48
davidmorton0 pushed a commit to davidmorton0/faker that referenced this pull request Jul 12, 2021
* Add tests for new Faker::Internet.slug glue

* Update test_faker_internet.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants