-
Notifications
You must be signed in to change notification settings - Fork 492
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
Application tests #688
Application tests #688
Conversation
# :nocov: | ||
def run | ||
Rake.application = self | ||
super | ||
end | ||
# :nocov: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed this method from simplecov coverage because there's no easy way to test this without invoking a task.
@top_level_tasks << :debug_configuration_variables | ||
@top_level_tasks << :run_commands | ||
|
||
@top_level_tasks << 'debug_configuration_variables' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All @top_level_tasks
are strings so I modified the default task names. It worked before because Rake calls to_s
on a task name (ref)
@@ -38,48 +41,53 @@ def minafile | |||
end | |||
|
|||
def version | |||
['--version', '-V', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The below code doesn't touch the logic, only style.
Adds tests for application class, mainly what happens when you set a command-line option.