Class: Booth::Test::Support::AssertPartial

Inherits:
Object
  • Object
show all
Includes:
MethodObject
Defined in:
lib/booth/test/support/assert_partial.rb

Instance Method Summary collapse

Methods included from MethodObject

included

Instance Method Details

#callObject



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

#partialObject



23
24
25
# File 'lib/booth/test/support/assert_partial.rb', line 23

def partial
  "#{namespace}/#{controller}/#{step}"
end