diff --git a/spec/features/user_views_ember_app_spec.rb b/spec/features/user_views_ember_app_spec.rb index 72e2d520..e8eda2a1 100644 --- a/spec/features/user_views_ember_app_spec.rb +++ b/spec/features/user_views_ember_app_spec.rb @@ -35,6 +35,20 @@ end end + # `render_ember_app` emits the application's complete HTML document, so the + # rendering action must disable its layout — the dummy application uses + # `HighVoltage.layout = false` — or the document ends up nested inside the + # layout's ``. + scenario "renders a single, complete HTML document", js: false do + [include_index_path, include_index_head_and_body_path, default_path].each do |path| + visit path + + expect(page.html.scan(/Dummy") + end + end + scenario "is redirected with trailing slash", js: false do expect(include_index_path).to eq("/no-block")