Skip to content

Commit

Permalink
fix rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
SethHorsley committed Oct 7, 2024
1 parent 70873c7 commit c63c6f2
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions lib/phlex/testing/basic.rb
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
# frozen_string_literal: true

module Phlex
module Testing
module Basic
def render(view, &)
if view.is_a?(Class) && view < Phlex::SGML
view = view.new
end
module Testing
module Basic
def render(view, &)
if view.is_a?(Class) && view < Phlex::SGML
view = view.new
end

view.call(view_context:, &)
end
view.call(view_context:, &)
end

def view_context
nil
end
end
def view_context
nil
end
end

# Create an alias for the Basic module
ViewHelper = Basic
end
# Create an alias for the Basic module
ViewHelper = Basic
end
end

0 comments on commit c63c6f2

Please sign in to comment.