-
-
Notifications
You must be signed in to change notification settings - Fork 163
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
Make forgetting setup_aruba a hard failure #510
Conversation
@@ -90,7 +90,7 @@ Feature: Getting started with RSpec and aruba | |||
|
|||
Running `setup_aruba` removes `tmp/aruba`, creates a new one `tmp/aruba` | |||
and make it the working directory. Running it within a `before(:all)`-hook, | |||
run some `aruba`-method and then run `setup_arub` again within a | |||
run some `aruba`-method and then run `setup_aruba` again within a |
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.
Could we change this text to drop the hyphens, so that
`aruba`-method
becomes
`aruba` method
lib/aruba/api/core.rb
Outdated
@@ -127,7 +127,7 @@ def expand_path(file_name, dir_string = nil) | |||
fail ArgumentError, message unless file_name.is_a?(String) && !file_name.empty? | |||
|
|||
# rubocop:disable Metrics/LineLength | |||
aruba.logger.warn %(`aruba`'s working directory does not exist. Maybe you forgot to run `setup_aruba` before using it's API. This warning will be an error from 1.0.0) unless Aruba.platform.directory? File.join(aruba.config.root_directory, aruba.config.working_directory) | |||
fail %(Aruba's working directory does not exist. Maybe you forgot to run `setup_aruba` before using it's API.) unless Aruba.platform.directory? File.join(aruba.config.root_directory, aruba.config.working_directory) |
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.
Grammar note: it's
=> its
This is a huge help! |
I'm going to see about moving the setup check to earlier in the process, so it doesn't depend on |
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.
Thanks for adding this verification.
I might do that later, it breaks a lot right now. |
Summary
Make forgetting
setup_aruba
a hard failureDetails
Forgetting to run
setup_aruba
resulted in a warning announcing that it would be a hard failure in 1.0.0. Kind of like 'deprecated', but with a twist. This PR makes the hard failure happen.Motivation and Context
Part of getting ready for 1.0.0.
How Has This Been Tested?
Scenarios that relied on the old behavior have been removed. The hard failure is not tested explicitly.
Types of changes
Checklist: