Add basic help controller spec
This commit is contained in:
parent
be90b4fef3
commit
b01ca5d3bc
1 changed files with 16 additions and 0 deletions
16
spec/controllers/help_controller_spec.rb
Normal file
16
spec/controllers/help_controller_spec.rb
Normal 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
|
||||||
Loading…
Reference in a new issue