We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c45b7ee commit 942f53eCopy full SHA for 942f53e
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
@@ -694,6 +694,10 @@ def exec_name
694
refute_output_includes "bin/rails runner ''", stderr: "WARN"
695
end
696
697
+ test "rails without arguments" do
698
+ assert_success "bin/rails"
699
+ end
700
+
701
test "rails db:migrate" do
702
assert_speedup do
703
2.times { app.run "bin/rails db:migrate" }
0 commit comments