From e731d05da4535a4a3bd8f22fb7cd231d555e0a41 Mon Sep 17 00:00:00 2001 From: Mark Bates Date: Tue, 26 Jun 2018 13:40:45 -0400 Subject: [PATCH] exposed the suite session store New method --- session.go | 2 +- suite.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/session.go b/session.go index 91fafce..084f9a3 100644 --- a/session.go +++ b/session.go @@ -10,7 +10,7 @@ type sessionStore struct { sessions map[string]*sessions.Session } -func newSessionStore() sessions.Store { +func NewSessionStore() sessions.Store { return &sessionStore{ sessions: map[string]*sessions.Session{}, } diff --git a/suite.go b/suite.go index 4fb2e1a..b583f4e 100644 --- a/suite.go +++ b/suite.go @@ -52,7 +52,7 @@ func (as *Action) JSON(u string, args ...interface{}) *willie.JSON { } func (as *Action) SetupTest() { - as.App.SessionStore = newSessionStore() + as.App.SessionStore = NewSessionStore() s, _ := as.App.SessionStore.New(nil, as.App.SessionName) as.Session = &buffalo.Session{ Session: s,