fix tests for site controller

This commit is contained in:
Chris Flipse 2018-06-08 16:57:35 -04:00
parent 2ab3d56102
commit b16aa11f65
2 changed files with 5 additions and 2 deletions

View file

@ -103,7 +103,9 @@ class SiteController < ApplicationController
@locale = params[:copyright_locale] || I18n.locale
end
def welcome; end
def welcome
require_user
end
def help; end

View file

@ -3,9 +3,10 @@ class Ability
def initialize(user)
can :index, :site
can [:permalink, :edit, :help, :fixthemap, :offline, :export, :about, :preview, :copyright, :key, :id, :welcome], :site
if user
can :welcome, :site
can :weclome, :site
end
# Define abilities for the passed in user here. For example:
#