Class: Booth::Testing::Support::AssertAllPartialsWereCovered

Inherits:
Object
  • Object
show all
Includes:
Calls, Minitest::Assertions
Defined in:
lib/booth/testing/support/assert_all_partials_were_covered.rb

Constant Summary collapse

EXPECTED_PARTIALS =

cd test/dummy ls app/views/community -R

%w[
  userland/logins/enter_username
  userland/logins/enter_webauth
  userland/logins/no_authenticators
  userland/logins/remote_session_available
  userland/logins/remote_session_expired
  userland/onboardings/already_used
  userland/onboardings/blocked
  userland/onboardings/not_found
  userland/onboardings/not_needed
  userland/onboardings/redeem
  userland/onboardings/success
  userland/onboardings/timed_out
  userland/onboardings/wrong_user
  userland/registrations/already_logged_in
  userland/registrations/choose_username
  userland/remote_logins/no_remote
  userland/remote_logins/remote_login
  userland/remote_logins/remote_solved
  userland/sessions/index
  userland/webauths/choose_nickname
  userland/webauths/completed
  userland/webauths/confirm
  userland/webauths/index
  userland/webauths/register
  userland/webauths/sudo
  userland/sessions/enter_webauth_to_destroy
  userland/sessions/enter_webauth_to_destroy_all_others
].freeze

Instance Method Summary collapse

Instance Method Details

#callObject



42
43
44
45
# File 'lib/booth/testing/support/assert_all_partials_were_covered.rb', line 42

def call
  assert_empty superfluous_partials, 'These partials were rendered but not anticipated'
  assert_empty missing_partials, 'These partials were not rendered in any test'
end