test/test_helper.rb
# TODO: maybe this should not live here, due to its assertions...
# Moved it here for now because it is shared across multiple tests.
maybe this should not live here, due to its assertions
Moved it here for now because it is shared across multiple tests.
maybe this should not live here due to its assertions Moved it here for now because it is shared across multiple tests .
def visit_questionnaire_submission_page questionnaire
  visit submission_questionnaire_path(questionnaire)
  assert page.has_content?(questionnaire.questionnaire_fields.first.title)
  assert page.has_content?("Submit questionnaire")
end
def visit_questionnaire_submission_page questionnaire visit submission_questionnaire_path ( questionnaire ) assert page . has_content? ( questionnaire . questionnaire_fields . first . title ) assert page . has_content? ( "Submit questionnaire" ) end
TODO: maybe this should not live here, due to its assertions...
TODO : maybe this should not live here due to its assertions ...
questionnaire