Skip to content

Commit

Permalink
Update image card spec
Browse files Browse the repository at this point in the history
  • Loading branch information
martikat committed Dec 5, 2024
1 parent dc6003c commit 11bdf6d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 0 additions & 2 deletions config/initializers/markdown.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,7 @@ def two_thirds
# @example
# {image_card}
# This is the title
#
# This is the body copy
#
# //path/to/image
# {/image_card}
#
Expand Down
5 changes: 1 addition & 4 deletions spec/helpers/content_helper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -120,17 +120,14 @@
<<~MARKUP
{image_card}
This is the image card title
This is image text
//This is the image
{/image_card}
MARKUP
end

it 'renders a title' do
expect(html).to include 'title="This is the image card title"'
expect(html).to include 'This is the image card title'
end
end
end
Expand Down

0 comments on commit 11bdf6d

Please sign in to comment.