diff --git a/config/locales/en.yml b/config/locales/en.yml index 5b9ff6e98f..2ff4516c40 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -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: diff --git a/spec/components/figure_spec.rb b/spec/components/figure_spec.rb index 075feb2e3b..df2c5ee47c 100644 --- a/spec/components/figure_spec.rb +++ b/spec/components/figure_spec.rb @@ -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