Module: Phlex::Testing::Capybara::ViewHelper
- Includes:
- ViewHelper
- Defined in:
- lib/phlex/testing/capybara.rb
Instance Attribute Summary collapse
-
#page ⇒ Object
Returns the value of attribute page.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#page ⇒ Object
Returns the value of attribute page.
19 20 21 |
# File 'lib/phlex/testing/capybara.rb', line 19 def page @page end |
Class Method Details
.included(klass) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/phlex/testing/capybara.rb', line 12 def self.included(klass) if defined?(Minitest::Test) && klass < Minitest::Test require "capybara/minitest" include ::Capybara::Minitest::Assertions end end |
Instance Method Details
#render(view, &block) ⇒ Object
21 22 23 |
# File 'lib/phlex/testing/capybara.rb', line 21 def render(view, &block) @page = ::Capybara::Node::Simple.new(super) end |