We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9b8ba21 + 942f53e commit c83c31bCopy full SHA for c83c31b
lib/spring/client/rails.rb
@@ -20,7 +20,7 @@ def call
20
21
if COMMANDS.include?(command_name)
22
Run.call(["rails_#{command_name}", *args.drop(2)])
23
- elsif command_name.start_with?("db:")
+ elsif command_name&.start_with?("db:")
24
Run.call(["rake", *args.drop(1)])
25
else
26
require "spring/configuration"
test/support/acceptance_test.rb
@@ -693,6 +693,10 @@ def exec_name
693
refute_output_includes "bin/rails runner ''", stderr: "WARN"
694
end
695
696
+ test "rails without arguments" do
697
+ assert_success "bin/rails"
698
+ end
699
+
700
test "rails db:migrate" do
701
assert_speedup do
702
2.times { app.run "bin/rails db:migrate" }
0 commit comments