diff --git a/spec/unit/views/components/unsupported_browser_spec.rb b/spec/unit/views/components/unsupported_browser_spec.rb index f603cf3e4c4..bd259573e64 100644 --- a/spec/unit/views/components/unsupported_browser_spec.rb +++ b/spec/unit/views/components/unsupported_browser_spec.rb @@ -15,8 +15,7 @@ def build_panel end it "should render the panel" do - expect(ActiveAdmin::Views::UnsupportedBrowser::I18n).to receive(:t).and_return("headline", "recommendation" ,"turn_off_compatibility_view") - + expect(I18n).to receive(:t).and_return("headline", "recommendation" ,"turn_off_compatibility_view") expect(build_panel.content.gsub(/\s+/, "")).to eq "

headline

recommendation

turn_off_compatibility_view

" end