Add basic terms controller spec

This commit is contained in:
Steffen van Bergerem 2016-07-08 20:29:43 +02:00
parent d0f6a7fe89
commit b296e73c36
No known key found for this signature in database
GPG key ID: 2F08F75F9525C7E0
2 changed files with 16 additions and 1 deletions

View file

@ -220,7 +220,7 @@ Diaspora::Application.routes.draw do
get "statistics", to: "node_info#statistics" get "statistics", to: "node_info#statistics"
# Terms # Terms
if AppConfig.settings.terms.enable? if AppConfig.settings.terms.enable? || Rails.env.test?
get 'terms' => 'terms#index' get 'terms' => 'terms#index'
end end

View file

@ -0,0 +1,15 @@
require "spec_helper"
describe TermsController, type: :controller do
describe "#index" do
it "succeeds" do
get :index
expect(response).to be_success
end
it "succeeds on mobile" do
get :index, format: :mobile
expect(response).to be_success
end
end
end