Skip to content

Commit

Permalink
FIX component
Browse files Browse the repository at this point in the history
  • Loading branch information
KludgeKML committed Sep 4, 2024
1 parent a5801db commit 6e82d3c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ en:
substitute_day: Substitute day
today: today
upcoming_bank_holidays: Upcoming bank holidays
components:
figure:
image_credit: 'Image credit: %{credit}'
content_item:
schema_name:
take_part:
Expand Down
2 changes: 1 addition & 1 deletion spec/components/figure_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ def component_name
end

it "fails to render a figure when no data is given" do
expect(render_component({})).to raise_error
expect { render_component({}) }.to raise_error
end

it "fails to render an image when no source is given" do
Expand Down

0 comments on commit 6e82d3c

Please sign in to comment.