Skip to content

Commit

Permalink
Fix test?
Browse files Browse the repository at this point in the history
  • Loading branch information
f-f committed Jun 17, 2019
1 parent 465ec5d commit a7b3cc0
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions test/SpagoSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,16 @@ spec = around_ setup $ do
mv "src/Main.purs" "another_source_path/Main.purs"
spago ["build", "--path", "another_source_path/*.purs"] >>= shouldBeSuccess

-- it "Spago should add sources to config when key is missing" $ do

-- spago ["init"] >>= shouldBeSuccess
-- -- Replace initial config with the old config format (without 'sources')
-- writeTextFile "spago.dhall" =<< readFixture "spago-configV1.dhall"
-- spago ["build"] >>= shouldBeSuccess
-- mv "spago.dhall" "spago-configV2.dhall"
-- checkFixture "spago-configV2.dhall"
it "Spago should add sources to config when key is missing" $ do

configV1 <- readFixture "spago-configV1.dhall"
spago ["init"] >>= shouldBeSuccess
-- Replace initial config with the old config format (without 'sources')
writeTextFile "spago.dhall" configV1

spago ["build"] >>= shouldBeSuccess
mv "spago.dhall" "spago-configV2.dhall"
checkFixture "spago-configV2.dhall"

describe "spago test" $ do

Expand Down

0 comments on commit a7b3cc0

Please sign in to comment.