The page_title component provides a simple <h2> tag. It’s very basic but it gives you a consistent way to generate page titles that can be amended later to include any classes that you want to apply to all instances of the component.
Side-by-side view
Spec
subjectdo active_element.component.page_title'Welcome to ActiveElement' end
it{is_expected.toinclude'Welcome to ActiveElement'}
Output
<h2>Welcome to ActiveElement</h2>
Rendered Output
Welcome to ActiveElement
subjectdo active_element.component.page_title'Welcome to ActiveElement' end
it{is_expected.toinclude'Welcome to ActiveElement'}