Fix: remove unexpected rspec help
output when running rspec
.
#28
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi,
I've been having an issue that whenever I run
rspec
on theaoc_rb
gem project, in addition to the spec results it also prints an unexpected "help" output which is kind of weird - it looks like it's for RSpec, but on a closer look it's actually for AocRb commands (but it saysrspec
instead ofaoc
).This PR fixes it by moving
Thor.start
invocation to, what I hope is, a more appropriate place for it - the "bin" files.Expectation
When running
rspec
on this project I expect only the results of the specs to be printed.Bug
When running
rspec
I also get the help output of the Thor commands,AocRb::App
andAocRb::Cli
. Also, weirdly, the help output statesrspec
instead ofaoc
.Fix
Moves
Thor.start
invocations from the respective class files to their respective "bin" files, so thatThor.start
would no longer be called whenrspec
is loading the classes for the spec run.Sorry if my description is terse. It's been a while since I contributed.