Skip to content

Commit acca679

Browse files
committed
Fix the tests for Ruby 3.4
1 parent a1f5439 commit acca679

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

test/support/acceptance_test.rb

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,14 @@ def without_gem(name)
9898
end
9999

100100
test "crash on boot" do
101-
app.run app.spring_test_command, env: {
102-
"CRASH_ON_BOOT" => "1",
103-
# If the command is small enough, it might fit in the socket buffer and writing the command won't block.
104-
# So we send a big environment variable to better reproduce the problem.
105-
"FOO" => "bar" * 4_000,
106-
}
101+
assert_nothing_raised do
102+
app.run app.spring_test_command, env: {
103+
"CRASH_ON_BOOT" => "1",
104+
# If the command is small enough, it might fit in the socket buffer and writing the command won't block.
105+
# So we send a big environment variable to better reproduce the problem.
106+
"FOO" => "bar" * 4_000,
107+
}
108+
end
107109
end
108110

109111
test "help message when called without arguments" do
@@ -288,7 +290,7 @@ def exec_name
288290
test "binstub when spring binary is missing" do
289291
begin
290292
File.rename(app.path("bin/spring"), app.path("bin/spring.bak"))
291-
assert_failure "bin/rake -T", stderr: "`load': cannot load such file"
293+
assert_failure "bin/rake -T", stderr: "load': cannot load such file"
292294
ensure
293295
File.rename(app.path("bin/spring.bak"), app.path("bin/spring"))
294296
end

0 commit comments

Comments
 (0)