Skip to content

Commit

Permalink
remove warning from unsupported_browser_spec
Browse files Browse the repository at this point in the history
  • Loading branch information
timoschilling committed Oct 20, 2014
1 parent aee5d5b commit eac7285
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions spec/unit/views/components/unsupported_browser_spec.rb
Expand Up @@ -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 "<h1>headline</h1><p>recommendation</p><p>turn_off_compatibility_view</p>"
end

Expand Down

0 comments on commit eac7285

Please sign in to comment.