on master help sign in
Add a test for 'ob init' bug
commitdea6842bd92b2dcbb9bd0c95f4cbdc7e66503d12 authorTom Smalley <tfsmalley@gmail.com> dateThu 16 Apr 2020, 19:16 (7 years ago) parente56f3b1
1 file changed+5
lib/selftest/src/Obelisk/SelfTest.hs+5
lib/selftest/src/Obelisk/SelfTest.hs+5
@@ -194,6 +194,11 @@ main' isVerbose httpManager obeliskRepoReadOnly = withInitCache $ \initCache ->
194194 configs <- getConfigs
195195 return (either (const Nothing) Just $ getConfigRoute configs) `shouldNotReturn` Nothing
196196
197+ it "can unpack and repack .obelisk/impl after init with master branch impl" $ inTmp $ \_ -> do
198+ runOb_ ["init", "--branch", "master"]
199+ runOb_ ["thunk", "unpack", ".obelisk/impl"]
200+ runOb_ ["thunk", "pack", ".obelisk/impl"]
201+
197202 -- These tests fail with "Could not find module 'Obelisk.Generated.Static'"
198203 -- when not run by 'nix-build --attr selftest'
199204 describe "ob run" $ {- NOT parallel $ -} do