diff --git a/hpack.cabal b/hpack.cabal
--- a/hpack.cabal
+++ b/hpack.cabal
@@ -1,9 +1,9 @@
--- This file has been generated from package.yaml by hpack version 0.1.0.
+-- This file has been generated from package.yaml by hpack version 0.1.1.
 --
 -- see: https://github.com/sol/hpack
 
 name:           hpack
-version:        0.1.1
+version:        0.1.2
 synopsis:       An alternative format for Haskell packages
 homepage:       https://github.com/sol/hpack#readme
 bug-reports:    https://github.com/sol/hpack/issues
diff --git a/test/ConfigSpec.hs b/test/ConfigSpec.hs
--- a/test/ConfigSpec.hs
+++ b/test/ConfigSpec.hs
@@ -9,7 +9,6 @@
 ) where
 
 import           Helper
-import           Test.Mockery.Directory
 
 import           Data.String.Interpolate
 
diff --git a/test/Helper.hs b/test/Helper.hs
--- a/test/Helper.hs
+++ b/test/Helper.hs
@@ -1,10 +1,12 @@
 module Helper (
   module Test.Hspec
+, module Test.Mockery.Directory
 , module Control.Applicative
 , touch
 ) where
 
 import           Test.Hspec
+import           Test.Mockery.Directory
 import           Control.Applicative
 import           System.Directory
 import           System.FilePath
diff --git a/test/UtilSpec.hs b/test/UtilSpec.hs
--- a/test/UtilSpec.hs
+++ b/test/UtilSpec.hs
@@ -2,7 +2,6 @@
 module UtilSpec (main, spec) where
 
 import           Helper
-import           Test.Mockery.Directory
 import           Data.Aeson
 
 import           Util
@@ -40,10 +39,13 @@
 
   describe "tryReadFile" $ do
     it "reads file" $ do
-      tryReadFile "test/asset/foo" `shouldReturn` Just "foo\n"
+      inTempDirectory $ do
+        writeFile "foo" "bar"
+        tryReadFile "foo" `shouldReturn` Just "bar"
 
     it "returns Nothing if file does not exist" $ do
-      tryReadFile "test/asset/bar" `shouldReturn` Nothing
+      inTempDirectory $ do
+        tryReadFile "foo" `shouldReturn` Nothing
 
   describe "extractFieldOrderHint" $ do
     it "extracts field order hints" $ do
