Define and apply matcher :be_rendered
Add this changes to make components specs clear
This commit is contained in:
@@ -13,7 +13,7 @@ describe Layout::LocaleSwitcherComponent do
|
||||
it "doesn't render anything" do
|
||||
render_inline component
|
||||
|
||||
expect(page.native.inner_html).to be_empty
|
||||
expect(page).not_to be_rendered
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ describe Layout::SocialComponent do
|
||||
|
||||
render_inline Layout::SocialComponent.new
|
||||
|
||||
expect(page.native.inner_html).to be_empty
|
||||
expect(page).not_to be_rendered
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -13,7 +13,7 @@ describe Layout::TopLinksComponent do
|
||||
it "does not render when no content block is defined" do
|
||||
render_inline Layout::TopLinksComponent.new
|
||||
|
||||
expect(page.native.inner_html).to be_empty
|
||||
expect(page).not_to be_rendered
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user