Add basic help controller spec

This commit is contained in:
Steffen van Bergerem 2016-07-08 23:08:16 +02:00
parent be90b4fef3
commit b01ca5d3bc
No known key found for this signature in database
GPG key ID: 2F08F75F9525C7E0

View file

@ -0,0 +1,16 @@
require "spec_helper"
describe HelpController, type: :controller do
describe "#faq" do
it "succeeds" do
get :faq
expect(response).to be_success
end
it "fails on mobile" do
expect {
get :faq, format: :mobile
}.to raise_error ActionView::MissingTemplate
end
end
end