Skip to content

Commit d79d165

Browse files
authored
Merge pull request #2557 from arzezak/abort-with-message
Abort with argument
2 parents 837e4d5 + 5acd27a commit d79d165

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/generators/rspec/install/templates/spec/rails_helper.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@
2828
begin
2929
ActiveRecord::Migration.maintain_test_schema!
3030
rescue ActiveRecord::PendingMigrationError => e
31-
puts e.to_s.strip
32-
exit 1
31+
abort e.to_s.strip
3332
end
3433
<% end -%>
3534
RSpec.configure do |config|

0 commit comments

Comments
 (0)