diff options
author | flaburgan <flaburgan@geexxx.fr> | 2022-11-01 02:37:13 +0300 |
---|---|---|
committer | flaburgan <flaburgan@geexxx.fr> | 2022-11-03 01:27:58 +0300 |
commit | 3d84ae18a7cae4a47cdbde1ed8051366138d548e (patch) | |
tree | 8d95a967ff3930cb6c4580261c389208ac9c7c50 /spec | |
parent | 6af305b2be06c06d6a851cb85fa563c1225b83eb (diff) |
Tell users that there is no help in mobile version, allow to switch to desktop, fixes #4821
Diffstat (limited to 'spec')
-rw-r--r-- | spec/controllers/help_controller_spec.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/spec/controllers/help_controller_spec.rb b/spec/controllers/help_controller_spec.rb index a4d1c03c4..959049ad0 100644 --- a/spec/controllers/help_controller_spec.rb +++ b/spec/controllers/help_controller_spec.rb @@ -7,10 +7,9 @@ describe HelpController, type: :controller do expect(response).to be_successful end - it "fails on mobile" do - expect { - get :faq, format: :mobile - }.to raise_error ActionController::UnknownFormat + it "succeeds on mobile" do + get :faq, format: :mobile + expect(response).to be_successful end end end |