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

Rename tests according to the test*.rb pattern so that they run #2077

Merged
merged 1 commit into from
Jul 8, 2020
Merged

Rename tests according to the test*.rb pattern so that they run #2077

merged 1 commit into from
Jul 8, 2020

Conversation

juliosantos
Copy link
Contributor

Issue#

No-Story

Technically. However, it's related to issue #2076. I saw that PR #2071 addressed the issue but added or changed no tests. I was wondering why the 2.13.0 update didn't break any tests if it broke functionality, and discovered it was a naming issue.

Description:

The tests in test/faker/blockchain/ never ran. rake will, as per tasks/test.rake, only run test files which match FileList['test/**/**/test*.rb']. This file was last changed on Nov 11 2018 by d574bd9, and the tests in the blockchain folder all added afterwards.

This PR:

  • renames all four test files to prefix them with test_
  • fixes test_block in the new test_tezos.rb which was calling Faker::Tezos instead of Faker::Blockchain::Tezos

Testing output changed from
1537 tests, 81356 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
to
1551 tests, 81369 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications

@Zeragamba Zeragamba merged commit cdf2ce2 into faker-ruby:master Jul 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants