scotty-web / scotty

Haskell web framework inspired by Ruby's Sinatra, using WAI and Warp (Official Repository)
http://hackage.haskell.org/package/scotty
BSD 3-Clause "New" or "Revised" License
1.71k stars 132 forks source link

Add test on handler priority #373

Open cblp opened 5 months ago

ocramz commented 5 months ago

@cblp Thanks, but we can't merge code if it breaks CI. If you want to show a problem with the current implementation, could you make a dedicated subsection in the tests ("context"..) and rewrite tests such that they pass?

cblp commented 5 months ago

I can't make it pass without changing main implementation.

cblp commented 4 months ago

@ocramz what do you think of this implementation?

cblp commented 4 months ago

I'm not sure how to write such tests, I did it intuitively. I just want to see exception when it is thown from a handler.