Sha256: 79c2780f25e4ba5dfb65ead7e7e1d80071e639830aa01d218bf74252249ec1ab
Contents?: true
Size: 483 Bytes
Versions: 4
Compression:
Stored size: 483 Bytes
Contents
# frozen_string_literal: true require "capybara" require_relative "view_helper" module Phlex::Testing module Capybara module ViewHelper include Phlex::Testing::ViewHelper def self.included(klass) if defined?(Minitest::Test) && klass < Minitest::Test require "capybara/minitest" include ::Capybara::Minitest::Assertions end end attr_accessor :page def render(view, &block) @page = ::Capybara::Node::Simple.new(super) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
phlex-0.5.3 | lib/phlex/testing/capybara.rb |
phlex-0.5.2 | lib/phlex/testing/capybara.rb |
phlex-0.5.1 | lib/phlex/testing/capybara.rb |
phlex-0.5.0 | lib/phlex/testing/capybara.rb |