diff options
Diffstat (limited to 'spec/components/pajamas/banner_component_spec.rb')
-rw-r--r-- | spec/components/pajamas/banner_component_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/components/pajamas/banner_component_spec.rb b/spec/components/pajamas/banner_component_spec.rb index 861b10c3f69..6b99b4c1d76 100644 --- a/spec/components/pajamas/banner_component_spec.rb +++ b/spec/components/pajamas/banner_component_spec.rb @@ -13,7 +13,7 @@ RSpec.describe Pajamas::BannerComponent, type: :component do describe 'basic usage' do before do render_inline(subject) do |c| - c.title { title } + c.with_title { title } content end end @@ -124,8 +124,8 @@ RSpec.describe Pajamas::BannerComponent, type: :component do context 'with illustration slot' do before do render_inline(subject) do |c| - c.title { title } - c.illustration { "<svg></svg>".html_safe } + c.with_title { title } + c.with_illustration { "<svg></svg>".html_safe } content end end @@ -147,8 +147,8 @@ RSpec.describe Pajamas::BannerComponent, type: :component do context 'with primary_action slot' do before do render_inline(subject) do |c| - c.title { title } - c.primary_action { "<a class='special' href='#'>Special</a>".html_safe } + c.with_title { title } + c.with_primary_action { "<a class='special' href='#'>Special</a>".html_safe } content end end |