Define and apply matcher :be_rendered

Add this changes to make components specs clear
This commit is contained in:
taitus
2021-11-03 18:17:30 +01:00
parent 2b35144540
commit 612872ac7a
20 changed files with 41 additions and 28 deletions

View File

@@ -82,13 +82,13 @@ describe Shared::BannerComponent do
render_inline Shared::BannerComponent.new("debates")
expect(page.native.inner_html).to be_empty
expect(page).not_to be_rendered
end
end
it "does not render anything given nil" do
render_inline Shared::BannerComponent.new(nil)
expect(page.native.inner_html).to be_empty
expect(page).not_to be_rendered
end
end