Skip to content

Commit 7bf087c

Browse files
committed
refactor: Remove view_context
With the upgrade, view_context is only required in Rails applications. Since our use case doesn’t require Rails-specific view helpers, we no longer need to pass view_context.
1 parent 109e339 commit 7bf087c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/test_helper.rb

+1-3
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,12 @@ module RubyUI
1919

2020
class ComponentTest < Minitest::Test
2121
def render(component, &)
22-
component.call(view_context:, &)
22+
component.call(&)
2323
end
2424

2525
def phlex(&)
2626
render Phlex::HTML.new, &
2727
end
28-
29-
def view_context = nil
3028
end
3129

3230
# this is a tracepoint that will output the path of all files loaded that contain the string "phlex"

0 commit comments

Comments
 (0)