Skip to content

Commit aa9fd47

Browse files
committed
Rails 5.1: account for 'rails server' usage continuing on a new line
1 parent 6d34c3a commit aa9fd47

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/spring/test/acceptance_test.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ def spring_env
3434

3535
def assert_output(artifacts, expected)
3636
expected.each do |stream, output|
37-
assert artifacts[stream].include?(output),
38-
"expected #{stream} to include '#{output}'.\n\n#{app.debug(artifacts)}"
37+
assert_match output, artifacts[stream],
38+
"expected #{stream} to include #{output.inspect}.\n\n#{app.debug(artifacts)}"
3939
end
4040
end
4141

@@ -230,7 +230,7 @@ def exec_name
230230
end
231231

232232
test "binstub" do
233-
assert_success "bin/rails server --help", stdout: "Usage: rails server" # rails command fallback
233+
assert_success "bin/rails server --help", stdout: /Usage:\s+rails server/ # rails command fallback
234234

235235
assert_success "#{app.spring} binstub rake", stdout: "bin/rake: spring already present"
236236

0 commit comments

Comments
 (0)