Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/thor/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ def from_superclass(method, default = nil)

# A flag that makes the process exit with status 1 if any error happens.
def exit_on_failure?
false
true
end

#
Expand Down
4 changes: 4 additions & 0 deletions spec/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@
ARGV.replace []
end

config.before(:each) do
allow_any_instance_of(Thor::Base::ClassMethods).to receive(:exit_on_failure?).and_return(false)
end

config.expect_with :rspec do |c|
c.syntax = :expect
end
Expand Down