Sha256: ca0954f238ba163b54dd13a84d84a341b0620f0b733e9f762ece84abe4f6d450
Contents?: true
Size: 424 Bytes
Versions: 4
Compression:
Stored size: 424 Bytes
Contents
# frozen_string_literal: true module Pages module Testing class Rails < ApplicationPage def template render Layout.new(title: "Testing Phlex Views in Rails") do render Markdown.new(<<~MD) # Testing Phlex views in Rails When you include `Phlex::Testing::Rails::ViewHelper`, views rendered in the test will have a view context, so they can use Rails helpers. MD end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
phlex-0.5.3 | docs/pages/testing/rails.rb |
phlex-0.5.2 | docs/pages/testing/rails.rb |
phlex-0.5.1 | docs/pages/testing/rails.rb |
phlex-0.5.0 | docs/pages/testing/rails.rb |