Skip to content

Commit

Permalink
Merge pull request #225 from phlex-ruby/new-testing-module
Browse files Browse the repository at this point in the history
New testing module
  • Loading branch information
joeldrapper authored Sep 7, 2024
2 parents 8e353bc + af702ac commit 597b6df
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 19 deletions.
17 changes: 17 additions & 0 deletions lib/phlex/rails/testing.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@

require "phlex/rails"
require "phlex/testing"

module Phlex::Testing::RailsContext
def view_context
controller.view_context
end

def controller
@controller ||= ActionView::TestCase::TestController.new
end
end

Phlex::Testing::SGML.include(
Phlex::Testing::RailsContext
)
19 changes: 0 additions & 19 deletions lib/phlex/testing/rails/view_helper.rb

This file was deleted.

0 comments on commit 597b6df

Please sign in to comment.