Skip to content

Commit 5c6ce8f

Browse files
committed
Make test suite Ruby 2.7 compatible
1 parent fc2b7d3 commit 5c6ce8f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

test/turbo_power/stream_helper/push_state_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class PushStateTest < StreamHelperTestCase
2020
test "push_state with title and state" do
2121
stream = %(<turbo-stream action="push_state" url="/users/1" title="User 1" state="{&quot;user&quot;:1}"><template></template></turbo-stream>)
2222

23-
assert_dom_equal stream, turbo_stream.push_state("/users/1", "User 1", { user: 1 })
23+
assert_dom_equal stream, turbo_stream.push_state("/users/1", "User 1", { user: 1 }, **{})
2424
end
2525

2626
test "push_state with url kwarg" do

test/turbo_power/stream_helper/replace_state_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class ReplaceStateTest < StreamHelperTestCase
2020
test "replace_state with title and state" do
2121
stream = %(<turbo-stream action="replace_state" url="/users/1" title="User 1" state="{&quot;user&quot;:1}"><template></template></turbo-stream>)
2222

23-
assert_dom_equal stream, turbo_stream.replace_state("/users/1", "User 1", { user: 1 })
23+
assert_dom_equal stream, turbo_stream.replace_state("/users/1", "User 1", { user: 1 }, **{})
2424
end
2525

2626
test "replace_state with url kwarg" do

test/turbo_power/stream_helper/set_styles_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class SetStylesTest < StreamHelperTestCase
5050
test "set_styles with styles as hash" do
5151
stream = %(<turbo-stream targets="#element" action="set_styles" styles="background: black; color: white"><template></template></turbo-stream>)
5252

53-
assert_dom_equal stream, turbo_stream.set_styles("#element", { background: "black", color: "white" })
53+
assert_dom_equal stream, turbo_stream.set_styles("#element", { background: "black", color: "white" }, **{})
5454
end
5555

5656
test "set_styles with styles as hash and kwarg" do

0 commit comments

Comments
 (0)