yesod/yesod-test/ChangeLog.md
2015-08-20 17:44:31 -07:00

919 B

1.5

  • remove deprecated addNonce functions
  • You can now configure testing middleware

Configuring middleware makes it easy to add logging among other things. middleware is applied to the wai app before each test.

If you follow the yesod scaffold, you probably have a withApp function in TestImport.hs. This function should now return (foundation, middleware). id is an acceptable value for middleware.

1.4.4

test helpers for CRSF middleware such as addTokenFromCookie

1.4.3.2

  • Add addTokenFromCookie and addTokenFromCookieNamedToHeaderNamed, which support the new CSRF token middleware #1058
  • Add getRequestCookies, which returns the cookies from the most recent request #1058

1.4.3.1

  • Improved README

1.4.2

Provide Example instance for YesodExample.

1.4.1.1

Upgrade to hspec 2