* Update config default; Copy non-defaults * Update .stylish-haskell config version to match pgrst * Apply stylish haskell to all files * CircleCI config * Remove redundant import. What is used from Network.HTTP.Types.Headers is also exported by Network.HTTP.Types. * Grouped imports * Show un-styled files on CircleCI failure * Fix styling imports * Apply adhoc standard correctly
18 lines
452 B
Haskell
18 lines
452 B
Haskell
module Feature.NonexistentSchemaSpec where
|
|
|
|
import Network.Wai (Application)
|
|
|
|
import Test.Hspec
|
|
import Test.Hspec.Wai
|
|
|
|
import Protolude hiding (get)
|
|
|
|
spec :: SpecWith Application
|
|
spec =
|
|
describe "Non existent api schema" $ do
|
|
it "succeeds when requesting root path" $
|
|
get "/" `shouldRespondWith` 200
|
|
|
|
it "gives 404 when requesting a nonexistent table in this nonexistent schema" $
|
|
get "/nonexistent_table" `shouldRespondWith` 404
|