diff --git a/spec/views/events/index.html_spec.rb b/spec/views/events/index.html_spec.rb index c394d8213..708116c9d 100644 --- a/spec/views/events/index.html_spec.rb +++ b/spec/views/events/index.html_spec.rb @@ -7,5 +7,7 @@ allow(view).to receive_messages(events: paged(event)) render + + expect(rendered).to include(event.name) end end diff --git a/spec/views/events/index.xml_spec.rb b/spec/views/events/index.xml_spec.rb index e03222668..5bb638052 100644 --- a/spec/views/events/index.xml_spec.rb +++ b/spec/views/events/index.xml_spec.rb @@ -6,5 +6,7 @@ it 'renders successfully' do allow(view).to receive_messages(events:) render + + expect(rendered).to include(events.first.name) end end diff --git a/spec/views/home/index.html_spec.rb b/spec/views/home/index.html_spec.rb index 47651d265..749e9a663 100644 --- a/spec/views/home/index.html_spec.rb +++ b/spec/views/home/index.html_spec.rb @@ -16,5 +16,7 @@ allow(view).to receive_messages(zoom:) render + + expect(rendered).to include(event.name) end end diff --git a/spec/views/labels/index.html_spec.rb b/spec/views/labels/index.html_spec.rb index 8873bb45f..c3658e916 100644 --- a/spec/views/labels/index.html_spec.rb +++ b/spec/views/labels/index.html_spec.rb @@ -5,5 +5,7 @@ Whitelabel.reset! render + + expect(rendered).to include(Whitelabel.labels.select(&:enabled?).first.name) end end diff --git a/spec/views/locations/index.html_spec.rb b/spec/views/locations/index.html_spec.rb index 8f788a4d5..79a5b4d5c 100644 --- a/spec/views/locations/index.html_spec.rb +++ b/spec/views/locations/index.html_spec.rb @@ -7,5 +7,7 @@ allow(view).to receive_messages(locations:) render + + expect(rendered).to include(locations.first.name) end end diff --git a/spec/views/locations/none.html_spec.rb b/spec/views/locations/none.html_spec.rb index e6dc64ed1..4b848c91e 100644 --- a/spec/views/locations/none.html_spec.rb +++ b/spec/views/locations/none.html_spec.rb @@ -9,6 +9,8 @@ I18n.with_locale(locale) do allow(view).to receive_messages(organizers:, stats:) render + + expect(rendered).to include(organizers.first.nickname) end end end diff --git a/spec/views/locations/show.html_spec.rb b/spec/views/locations/show.html_spec.rb index c6ded1877..59e5e3856 100644 --- a/spec/views/locations/show.html_spec.rb +++ b/spec/views/locations/show.html_spec.rb @@ -8,5 +8,7 @@ view.lookup_context.prefixes = %w[locations application] render + + expect(rendered).to include(location.name) end end diff --git a/spec/views/sitemaps/show.xml_spec.rb b/spec/views/sitemaps/show.xml_spec.rb index bd38e2e8f..cc0e4ccb2 100644 --- a/spec/views/sitemaps/show.xml_spec.rb +++ b/spec/views/sitemaps/show.xml_spec.rb @@ -7,5 +7,7 @@ allow(view).to receive_messages(urls: example_urls) render + + expect(rendered).to include(example_urls.first) end end diff --git a/spec/views/topics/edit.html_spec.rb b/spec/views/topics/edit.html_spec.rb index 8c95eb459..d4f818979 100644 --- a/spec/views/topics/edit.html_spec.rb +++ b/spec/views/topics/edit.html_spec.rb @@ -8,5 +8,7 @@ allow(view).to receive_messages(current_user: user, topic:, undone_topics: [topic]) render + + expect(rendered).to include(topic.name) end end diff --git a/spec/views/topics/index.html_spec.rb b/spec/views/topics/index.html_spec.rb index c2993f6b9..27b37222c 100644 --- a/spec/views/topics/index.html_spec.rb +++ b/spec/views/topics/index.html_spec.rb @@ -7,5 +7,7 @@ allow(view).to receive_messages(events: paged(event)) render + + expect(rendered).to include(event.name) end end diff --git a/spec/views/topics/new.html_spec.rb b/spec/views/topics/new.html_spec.rb index ef3a6400d..5cb75b18b 100644 --- a/spec/views/topics/new.html_spec.rb +++ b/spec/views/topics/new.html_spec.rb @@ -7,5 +7,7 @@ allow(view).to receive_messages(signed_in?: true, topic:, undone_topics: [topic]) render + + expect(rendered).to include(topic.name.to_s) end end diff --git a/spec/views/topics/show.html_spec.rb b/spec/views/topics/show.html_spec.rb index 3b25d0b41..623ff5a36 100644 --- a/spec/views/topics/show.html_spec.rb +++ b/spec/views/topics/show.html_spec.rb @@ -7,6 +7,8 @@ allow(view).to receive_messages(topic:, signed_in?: false) render + + expect(rendered).to include(topic.name) end context 'materials' do @@ -14,6 +16,8 @@ it 'renders without an error' do render partial: 'materials', locals: { materials: } + + expect(rendered).to include(materials.first.name) end end end diff --git a/spec/views/users/edit.html_spec.rb b/spec/views/users/edit.html_spec.rb index 0a54746ac..0baf3e00d 100644 --- a/spec/views/users/edit.html_spec.rb +++ b/spec/views/users/edit.html_spec.rb @@ -7,5 +7,7 @@ allow(view).to receive_messages(current_user: user, user:) render + + expect(rendered).to include(user.name) end end diff --git a/spec/views/users/show.html_spec.rb b/spec/views/users/show.html_spec.rb index 03375dd0e..cdc87ebcb 100644 --- a/spec/views/users/show.html_spec.rb +++ b/spec/views/users/show.html_spec.rb @@ -7,5 +7,7 @@ allow(view).to receive_messages(current_user: user, user:) render + + expect(rendered).to include(user.nickname) end end