Commit Graph

75 Commits

Author SHA1 Message Date
Mark Wotton
df6834a335 add followRedirect 2016-03-21 12:13:23 -04:00
Chris Allen
776007ffa3 better wording 2016-03-17 14:35:15 -05:00
Chris Allen
7e10d87492 better error formatting, bumping version 2016-03-17 14:33:15 -05:00
Chris Allen
57b7ad8eda better error provenance for stuff invoking withResponse' 2016-03-17 14:18:38 -05:00
Maximilian Tagher
479a19e65a yesod-test: have request not default to the form-urlencoded Content-Type
* Only set the Content-Type to "application/x-www-form-urlencoded" if key-value pairs are added
* Previously the "application/x-www-form-urlencoded" Content-Type would be added even if you set a binary request body.
	* You could add your own Content-Type with addRequestHeader, but this resulted in multiple Content-Type headers.
* Closes #1063
2015-08-24 20:27:28 -07:00
Greg Weber
95e6084634 Merge branch 'test-middleware'
Conflicts:
	yesod-test/yesod-test.cabal
2015-08-20 17:38:30 -07:00
Greg Weber
80ea70c39e Merge remote-tracking branch 'MaxGabriel/removeDeprecatedNonces'
Conflicts:
	yesod-test/Yesod/Test.hs
2015-08-20 17:36:08 -07:00
Maximilian Tagher
374195b4fa Add functions to yesod-test to support the new CSRF middleware 2015-08-19 22:18:30 -07:00
Greg Weber
b92ae3093a configurable middleware 2015-08-05 17:48:27 -07:00
Maximilian Tagher
3de93e3197 Remove deprecated addNonce and addNonce_ 2015-01-28 08:42:50 -08:00
Maximilian Tagher
e26f6f5fbe Update API documentation to take the nonce/token switchover into account. 2015-01-27 20:01:06 -08:00
Maximilian Tagher
94af9c6bdd Move yesod-test to using the term "token" instead of nonce.
Addresses part #1 of #914
2015-01-27 19:50:06 -08:00
Maximilian Tagher
cb4785cf28 Document much of yesod-test, especially the "Making Requests" section 2015-01-25 15:20:25 -08:00
Michael Snoyman
7fcddb6ee3 Provide Example instance for YesodExample 2014-11-20 02:14:06 +02:00
Simon Hengel
89e4e96698 yesod-test: Fix deprecation warnings 2014-11-11 22:07:31 +08:00
Simon Hengel
b6c894061e Forward compatibility with Hspec 2.0 2014-11-09 20:15:50 +08:00
Michael Snoyman
c66ef04f17 Merge branch 'master' into yesod-1.4
Conflicts:
	yesod-form/Yesod/Form/Functions.hs
2014-08-25 20:20:16 +03:00
Greg Weber
e74709433b add yesodSpecApp 2014-08-11 16:23:41 -07:00
Greg Weber
00f8bcf59b expose YesodExampleData 2014-08-11 15:58:47 -07:00
Maximilian Tagher
c06724402c Fix typo in yesod-test; analize -> analyze 2014-07-26 12:48:56 -07:00
Michael Snoyman
e6eae8ee5a Merge remote-tracking branch 'origin/master' into yesod-1.4
Conflicts:
	yesod-routes/Yesod/Routes/Parse.hs
	yesod-routes/test/Hierarchy.hs
	yesod-routes/yesod-routes.cabal
2014-07-26 21:20:31 +03:00
Michael Snoyman
ef25c90e9b Handle labels containing inputs #759 2014-06-17 08:22:38 +03:00
Michael Snoyman
33c384bb4e yesod-test: use HTTP/1.1 2014-06-08 08:14:38 +03:00
Michael Snoyman
3b53c047e7 Version bump 2014-05-29 18:52:39 +03:00
Erik de Castro Lopo
7318d47781 yesod-test : Add htmlNoneContain (logical inverse of htmlAnyContain). 2014-05-29 07:02:27 +10:00
Michael Snoyman
60526676e5 Encode empty paths correctly #730 2014-05-06 08:25:44 +03:00
Michael Snoyman
8c183d9cda Another fix for UTF8 paths 2014-04-27 11:21:43 +03:00
Michael Snoyman
bf3e8afefb Fix some character encoding bugs 2014-04-23 16:05:00 +03:00
Konstantine Rybnikov
928be6991e Refactor a bit to make pattern matching happy and makeMultipart only work on multipart data. 2013-08-11 09:53:41 +03:00
Konstantine Rybnikov
59eb67e087 Add error-reporting when trying to add file or post-param after binary content is set. 2013-08-09 23:13:56 +03:00
Konstantine Rybnikov
441842ae12 Revert "Use GADTs for static guarantee you use right type of post data."
This reverts commit 3655af11d3.
2013-08-09 22:48:09 +03:00
Konstantine Rybnikov
3655af11d3 Use GADTs for static guarantee you use right type of post data. 2013-07-30 11:11:34 +03:00
Konstantine Rybnikov
eb7ad4e480 Remove unused comment 2013-07-29 17:03:37 +03:00
Konstantine Rybnikov
a46a6fa399 Small spacing fix 2013-07-29 17:01:20 +03:00
Konstantine Rybnikov
fdb564abfe Get post function back without overwriting content 2013-07-29 17:00:32 +03:00
Konstantine Rybnikov
8664c010da Second attempt to write a good postBody and setRequestBody. 2013-07-29 16:57:13 +03:00
Konstantine Rybnikov
ee168c7829 Add postBody and setRequestBody functions to POST some data in a test. 2013-07-29 11:26:32 +03:00
Konstantine Rybnikov
a67732329d Add yesodSpecWithSiteGenerator method.
This method "extracts" site from `IO site` action every time, instead
of getting it only once. Helpful for flushing database (to recreate
connections) etc.
2013-07-25 17:48:29 +03:00
Michael Snoyman
cb8aa986f0 Fix yesod-test 2013-04-03 21:40:13 +03:00
Michael Snoyman
a1090d97d6 Expose YesodExample 2013-04-03 11:14:53 +03:00
Michael Snoyman
04d51bdb4c Fix bug for complete URLs 2013-04-02 19:45:23 +03:00
Michael Snoyman
51eb7d4ba2 RequestBuilder overhaul 2013-04-02 19:41:52 +03:00
Michael Snoyman
9f97de6519 Export list cleanup 2013-04-02 17:39:32 +03:00
Michael Snoyman
db53252960 yesod-test can use type-safe URLs 2013-04-02 17:29:09 +03:00
Michael Snoyman
ad817275e8 Further yesod-test cleanup 2013-04-02 17:05:40 +03:00
Michael Snoyman
ba8706429a Make yesod-test integrate better with hspec 2013-04-02 16:32:40 +03:00
Michael Snoyman
5b444c59eb Version bumps 2013-03-04 10:37:37 +02:00
Shane Kilkelly
d06e4530f9 and export the new function from the module 2013-03-03 17:25:26 +00:00
Shane Kilkelly
bbb1a66bac add a htmlAnyContain function 2013-03-03 17:16:10 +00:00
Michael Snoyman
aafecf5787 Parse query string parameters from URLs 2013-02-28 07:28:34 +02:00