From 9a22662031471592fafbd4991ccabe7ac62ba5c2 Mon Sep 17 00:00:00 2001 From: Nikolay Yakimov Date: Sun, 16 Aug 2015 18:49:48 +0300 Subject: [PATCH] Update in-memory preprocessing check spec --- test/FileMappingSpec.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/FileMappingSpec.hs b/test/FileMappingSpec.hs index aec408a..71bd81d 100644 --- a/test/FileMappingSpec.hs +++ b/test/FileMappingSpec.hs @@ -126,14 +126,14 @@ spec = do mapM_ (uncurry loadMappedFile) fm checkSyntax ["File.hs"] res `shouldBe` "File.hs:3:1:Warning: Top-level binding with no type signature: main :: IO ()\n" - it "checks in-memory file if one is specified and outputs original filename" $ do + it "doesn't check in-memory file" $ do withDirectory_ "test/data/file-mapping/preprocessor" $ do src <- readFile "File_Redir.hs" let fm = [("File.hs", MemoryMapping $ Just src)] res <- run defaultOptions $ do mapM_ (uncurry loadMappedFile) fm checkSyntax ["File.hs"] - res `shouldBe` "File.hs:3:1:Warning: Top-level binding with no type signature: main :: IO ()\n" + res `shouldBe` "buffer needs preprocesing; interactive check disabled\n" it "lints redirected file if one is specified and outputs original filename" $ do withDirectory_ "test/data/file-mapping/preprocessor" $ do res <- runD $ do