Skip to content

Commit 14d37d8

Browse files
committed
Abort with argument
It condenses two lines into one being that `abort` exits with 1.
1 parent fac29a1 commit 14d37d8

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}".strip
3332
end
3433
<% end -%>
3534
RSpec.configure do |config|

0 commit comments

Comments
 (0)