diaspora/spec/controllers/help_controller_spec.rb
Dennis Schubert e40a07f204
Replace be_success with be_successful in specs.
be_success is deprecated and will be removed in Rails 6.
2020-02-11 23:53:14 +01:00

16 lines
333 B
Ruby

# 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