Skip to content

Commit

Permalink
exposed the suite session store New method
Browse files Browse the repository at this point in the history
  • Loading branch information
markbates committed Jun 26, 2018
1 parent 6ea3ecb commit e731d05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion session.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{},
}
Expand Down
2 changes: 1 addition & 1 deletion suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e731d05

Please sign in to comment.