Class: Booth::Test::Support::AssertPartial
- Inherits:
-
Object
- Object
- Booth::Test::Support::AssertPartial
- Includes:
- MethodObject
- Defined in:
- lib/booth/test/support/assert_partial.rb
Instance Method Summary collapse
Methods included from MethodObject
Instance Method Details
#call ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/booth/test/support/assert_partial.rb', line 14 def call ::Capybara::Lockstep.synchronize page.find "[data-booth='#{partial}']", visible: :all self.class.asserted_partials << partial nil end |
#partial ⇒ Object
23 24 25 |
# File 'lib/booth/test/support/assert_partial.rb', line 23 def partial "#{namespace}/#{controller}/#{step}" end |