diff --git a/changelog.md b/changelog.md
--- a/changelog.md
+++ b/changelog.md
@@ -1,3 +1,6 @@
+## 0.11.5 [2019.09.07]
+* Allow building the test suite with `hspec-wai-0.10`.
+
 ## 0.11.4 [2019.05.02]
 * Allow building with `base-4.13` (GHC 8.8).
 
diff --git a/scotty.cabal b/scotty.cabal
--- a/scotty.cabal
+++ b/scotty.cabal
@@ -1,5 +1,5 @@
 Name:                scotty
-Version:             0.11.4
+Version:             0.11.5
 Synopsis:            Haskell web framework inspired by Ruby's Sinatra, using WAI and Warp
 Homepage:            https://github.com/scotty-web/scotty
 Bug-reports:         https://github.com/scotty-web/scotty/issues
@@ -95,7 +95,7 @@
                        transformers-compat >= 0.4      && < 0.7,
                        wai                 >= 3.0.0    && < 3.3,
                        wai-extra           >= 3.0.0    && < 3.1,
-                       warp                >= 3.0.13   && < 3.3
+                       warp                >= 3.0.13   && < 3.4
 
   GHC-options: -Wall -fno-warn-orphans
 
diff --git a/test/Web/ScottySpec.hs b/test/Web/ScottySpec.hs
--- a/test/Web/ScottySpec.hs
+++ b/test/Web/ScottySpec.hs
@@ -3,7 +3,6 @@
 
 import           Test.Hspec
 import           Test.Hspec.Wai
-import           Network.Wai (Application)
 
 import           Control.Applicative
 import           Control.Monad
@@ -33,9 +32,6 @@
 availableMethods :: [StdMethod]
 availableMethods = [GET, POST, HEAD, PUT, PATCH, DELETE, OPTIONS]
 
-withApp :: ScottyM () -> SpecWith Application -> Spec
-withApp = with . scottyApp
-
 spec :: Spec
 spec = do
   describe "ScottyM" $ do
@@ -174,6 +170,8 @@
   where ok, no :: ByteString
         ok = "HTTP/1.1 200 OK"
         no = "HTTP/1.1 404 Not Found"
+
+        withApp = with . scottyApp
 
 socketPath :: FilePath
 socketPath = "/tmp/scotty-test.socket"
