Infer type for component specs automatically
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
require "rails_helper"
|
||||
|
||||
describe Layout::LocaleSwitcherComponent, type: :component do
|
||||
describe Layout::LocaleSwitcherComponent do
|
||||
let(:component) { Layout::LocaleSwitcherComponent.new }
|
||||
|
||||
around do |example|
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
require "rails_helper"
|
||||
|
||||
describe Layout::SocialComponent, type: :component do
|
||||
describe Layout::SocialComponent do
|
||||
describe "#render?" do
|
||||
it "renders when a social setting is present" do
|
||||
Setting["twitter_handle"] = "myhandle"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
require "rails_helper"
|
||||
|
||||
describe Layout::TopLinksComponent, type: :component do
|
||||
describe Layout::TopLinksComponent do
|
||||
describe "#render?" do
|
||||
it "renders when a content block is defined" do
|
||||
create(:site_customization_content_block, name: "top_links")
|
||||
|
||||
Reference in New Issue
Block a user