Fix #22232: rake test tasks exit status code

The exit status code was not set when tests were fired with `rake`.
Now, it is being set and it matches behavior of running tests via `rails`
command (`rails test`), so no matter if `rake test` or `rails test` command
is used the exit code will be set.
This commit is contained in:
Arkadiusz Fal 2015-12-07 22:27:15 +01:00
parent 2af9c08079
commit ec2aefdbfa
2 changed files with 10 additions and 1 deletions

@ -1,3 +1,10 @@
* Fix setting exit status code for rake test tasks. The exit status code
was not set when tests were fired with `rake`. Now, it is being set and it matches
behavior of running tests via `rails` command (`rails test`), so no matter if
`rake test` or `rails test` command is used the exit code will be set.
*Arkadiusz Fal*
* Add Command infrastructure to replace rake.
Also move `rake dev:cache` to new infrastructure. You'll need to use

@ -57,7 +57,9 @@ def self.plugin_rails_options(opts, options)
# as the patterns would also contain the other Rake tasks.
def self.rake_run(patterns) # :nodoc:
@rake_patterns = patterns
run
passed = run
exit passed unless passed
passed
end
def self.plugin_rails_init(options)