module Phlex::Testing::Capybara
def self.included(mod)
def self.included(mod) if defined?(Minitest::Test) && Minitest::Test > mod require "capybara/minitest" mod.include Capybara::Minitest::Assertions end if defined?(RSpec::Core::ExampleGroup) && RSpec::Core::ExampleGroup > mod require "capybara/rspec" mod.include Capybara::RSpecMatchers end end
def render(...)
def render(...) @page = ::Capybara::Node::Simple.new( render_to_string(...), ) end