Welcome to mirror list, hosted at ThFree Co, Russian Federation.

help_controller_spec.rb « controllers « spec - github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a4d1c03c429df73209c3953cdfca9d37ab5fbe1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

describe HelpController, type: :controller do
  describe "#faq" do
    it "succeeds" do
      get :faq
      expect(response).to be_successful
    end

    it "fails on mobile" do
      expect {
        get :faq, format: :mobile
      }.to raise_error ActionController::UnknownFormat
    end
  end
end