Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
injms committed Nov 23, 2020
1 parent 3ffde64 commit ac55c25
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,13 @@
expect(shared_helper.t_locale(translation_key)).to eq :en
end

it "returns no locale if translation is present" do
it "returns no locale if translation is present and using default locale" do
I18n.locale = :fr

translation_key = "components.contents_list.contents"
shared_helper = GovukPublishingComponents::Presenters::SharedHelper.new({})

expect(shared_helper.t_locale(translation_key)).to be nil
expect(shared_helper.t_locale(translation_key)).to be :fr
end
end
end

0 comments on commit ac55c25

Please sign in to comment.