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

Avoid db:dev_seed log print when run from its test #2598

Merged
merged 1 commit into from
Apr 25, 2018

Conversation

bertocq
Copy link
Collaborator

@bertocq bertocq commented Apr 14, 2018

Objectives

The db:dev_seed rake logs info as it progresses as information for the
developer. But that's not needed when ran from its tests file, and it
bloats the travis/rspec output with unnecessary information.

Now the task will always log info unless the rake task receives an
optional argument.

Notes

Maybe there are better options to pass the optional argument value from the rake task lib/tasks/db.rake to the db/dev_seeds.rb file, but I couldn't find it.

The db:dev_seed rake logs info as it progresses as information for the
developer. But that's not needed when ran from its tests file, and it
bloats the travis/rspec output with unnecessary information.

Now the task will always log info unless the rake task receives an
optional argument.
Copy link
Member

@voodoorai2000 voodoorai2000 left a comment

Choose a reason for hiding this comment

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

👌

@bertocq bertocq merged commit 0ec5740 into master Apr 25, 2018
@bertocq bertocq deleted the avoid_dev_seeds_output_in_specs branch April 25, 2018 19:40
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.

None yet

2 participants