Sha256: cb40e15b856e83a4fe201b076e38a99e2e9eb5e71ca8fa73815b38de4fbf1142
Contents?: true
Size: 635 Bytes
Versions: 3
Compression:
Stored size: 635 Bytes
Contents
require 'fortress' # # Mother class for all controller used to test Fortress # class TestController < ActionController::Base include Rails.application.routes.url_helpers def render(*_) end end # # This controller is the one used in all the tests # class GuitarsController < TestController def index; end def show; end def new; end def create; end def edit; end def update; end def destroy; end end # # Controller with a custom access_deny method # class ConcertsController < TestController def index; end def access_deny flash[:error] = 'Accès refusé' redirect_to '/another/route' end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fortress-0.2.2 | spec/fixtures/controllers.rb |
fortress-0.2.1 | spec/fixtures/controllers.rb |
fortress-0.2.0 | spec/fixtures/controllers.rb |